Check which thread is running on which CPU in linux

坚强是说给别人听的谎言 提交于 2019-12-11 04:24:07

问题


I'm interested in finding which thread is running on which core/CPU. My Tomcat6 is using a single CPU core 100% and all other CPUs (my server has 16 other cores idle) are not being utilized... so I'm trying to figure out what went wrong.


回答1:


Funny that people downvotes but don't tell why. I searched for a while and found that following command gives which thread running on which CPU:

ps -p <PID> -L -o pid,tid,psr

Where < PID > is the pid of the process we are interested in.



来源:https://stackoverflow.com/questions/16381138/check-which-thread-is-running-on-which-cpu-in-linux

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!