I have a linux server that keeps getting its NIC overloaded and I need to visualize how and why this is occurring based on connections and CPU utilization. How do I do this?
For example; for me to visualize disk iowait I use tools such as
iotop that tell me the PID of the process and its CPU usage; using this information I can find which PID is overloading the server.
The problem is that I'm experiencing the same issue with networking and am unable to isolate and troubleshoot the problem b/c I'm unable to find which processes are linked to which connections (I can use
netstat I know but
netstat doesn't tell me CPU usage).
Now that I have made that clear I need to be able to monitor conntrack and netfilter for CPU usage and/or kernel time. How do I do this? Conventional tools such as
htop are not capable of doing this. I've been suggested to check interrupts but that doesn't seem "right" to me.