How to understand top and htop results for tomcat with java threads

Question

Using htop and atop commands show that Java eats much CPU. here are htop results:

enter image description here.

As I understand the main Tomcat thread with PID=17649 takes 248% of all CPUs.And then other java threads created inside app take small amount of CPU like 4-3%

But when I run "top -H -p 17649" Then I see

enter image description here

And there isn't any java thread with high CPU usage.

My questtions are:

  • Hhow to find LWP (light process id) to map it to jstack output
  • Do htop results mean that all CPU uses by Tomcat itself?
  • Why top or "ps -eLo pid,lwp,pcpu,vsz|grep 17649 |sort -n -k 3 -r |head -n 10" doesn't show thread with high CPU usage.

Thanks


Show source
| java   | linux   | tomcat   | htop   | top-command   2017-09-05 23:09 0 Answers

Answers to How to understand top and htop results for tomcat with java threads ( 0 )

Leave a reply to - How to understand top and htop results for tomcat with java threads

◀ Go back