Comments (6)
from netdata.
When this is implemented, I would love if it supported the mem
and orphan
numbers from /proc/net/sockstat
. This would be very helpful in tracking TCP: out of memory -- consider tuning tcp_mem
errors for tuning /proc/sys/net/ipv4/tcp_mem
.
from netdata.
These files are pretty simple to parse. I am not sure I know how to use this information though.
Can you find any reliable sources for each of the numbers in these files?
# cat /proc/net/sockstat
sockets: used 2152
TCP: inuse 66 orphan 0 tw 9 alloc 77 mem 6
UDP: inuse 17 mem 17
UDPLITE: inuse 0
RAW: inuse 0
FRAG: inuse 0 memory 0
This post says mem
in TCP
and UDP
are in pages, while memory
in FRAG
is in bytes.
This post discusses about orphan
, but I am not sure I understand. This one says that orphan sockets, are connections that are not attached to any user file handle.
This post describes out of memory errors and orphans, much better.
This is indeed very useful info!
from netdata.
I agree, it is a little hazy. I was using http://blog.tsunanet.net/2011/03/out-of-socket-memory.html as a reference which is helpful.
The TCP mem is in pages and directly correlates to /proc/sys/net/ipv4/tcp_mem
(which is also in pages). I'll see if i can dig up information on FRAG, orphan, tw, and alloc as well.
from netdata.
here is the /proc/net/sockstat
plugin.
Next is /proc/net/sockstat6
.
I'll also try to implement the alarm.
from netdata.
By the way my netdata aggregator server is showing the TCP: out of memory -- consider tuning tcp_mem
in dmesg. RAM usage and the number of used sockets (not a huge sudden increase) during these error messages seem normal, maybe there's something else leaking TCP memory?
from netdata.
Related Issues (20)
- Fix MAC Installation and Claiming using the Kickstart script HOT 1
- [Feat]: one of the most important alerts of one system are "silenced" by default!!!! HOT 3
- [Feat]: disable query log in go.d.plugin mysql collector HOT 2
- [Bug]: Netdata agent seems to lose all connection and vanishes from Netdata Cloud HOT 3
- [Bug]: Agent Registration via Key Fails HOT 7
- [Bug]: API v1 format array returns null values HOT 3
- [Bug]: Netdata web_log doesn't automatically match PURGE requests HOT 2
- [Bug]: service.netdata constantly segfault at 7fda6e11d7d8 HOT 10
- [Bug]: CGROUP: cannot read directory HOT 2
- [Bug]: HOT 4
- [Feat]: Collect (k8s) nginx-ingress logs HOT 1
- [Bug]: homebrew build: Mac CMakeLists.txt assumes `brew --prefix` command HOT 3
- [Bug]: freeipmi plugin stuck in defunct state HOT 3
- [Bug]: Building fails on Ubuntu 18.04 since 1.45.0 HOT 3
- [Bug]: Windows Nodes not showing up on dashboard HOT 4
- [Feat]: Connection from an ipv6-only host HOT 1
- [Bug]: Alert configuration host labels simple pattern negative matches don't work.
- [Bug]: unbound module failed to start HOT 2
- [Bug]: Cannot start Netdata when binding to a privileged port (80) HOT 6
- [Bug]: HP SSA Collector panics on drive cage information HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netdata.