Hmm, that java process has 0.227 TB of mapped virtual memory and 3090% CPU..
Linux Performance Analysis
31–40 of 84 posts
Re: Linux Performance Analysis
#32top has a batch mode: "top -b" will print all processes periodically to the terminal, without starting the curses-style UI, providing the same "rolling summary".
Re: Linux Performance Analysis
#33I had written some follow on commands at the end of the article, but trimmed them to make it shorter. They were:
# CPU
perf record -F 99 -a -g -- sleep 10; perf report -n --stdio # and flamegraphs
execsnoop # from perf-tools
turbostat
# Memory
cat /proc/meminfo
slabtop
# Disk
df -h
iosnoop # from perf-tools
pidstat -d
iotop
# Networking
netstat -s
tcpdump
tcpretrans # from perf-tools
Where perf-tools is https://github.com/brendangregg/perf-tools.Re: Linux Performance Analysis
#34Re: Linux Performance Analysis
#35And that is how I made payroll for BitKeeper in the early days.
I think it's cool that this stuff is far more common knowledge these days. All I was doing was figuring out if it was CPU, network, disks, file system, vm system, memory. 99% of the time I knew what the problem was in a few minutes, all the real effort was tracking down what program (or programs) were causing it. Funny enough, most people didn't care what cause was, they just wanted to know what to buy to make it not an issue. Crazy amounts of money being thrown at Sun equipment.
Re: Linux Performance Analysis
#36Earlier quoted context omitted.
I'll add to your list with htop. Its a little nicer than plain ole top.
And `glances` is pretty great for big-picture stuff, all-in-one. It's not as precise on CPU/memory as htop, but you get network bandwidth, disk I/O, disk usage and more.
Re: Linux Performance Analysis
#37Re: Linux Performance Analysis
#38> Don’t miss this step! dmesg is always worth checking. Best advice given in the whole article. Many times I go to check something that "can't figure out what is wrong." dmseg | tail and then the swearing begins on their end.
Can you imagine a world where the Windows System Event Viewer was this useful? It's amazing how much time one useful error message can save. Also, I'm a little disappointed that the author didn't drill down into what the actual problem was in his example. That java process is of course suspicious, but that might just be the video server and expected behavior.
And a likely source of misgivings regarding recent developments in the ecosystem...
Re: Linux Performance Analysis
#39https://media.netflix.com/en/tech-blog/linux-performance-ana...
Re: Linux Performance Analysis
#40The link redirects to the blog frontpage for me, but https://media.netflix.com/en/tech-blog/linux-performance-ana... works.