如何在AIX系统中找到JVM中最高使用率的线程
答案:1 悬赏:0 手机版
解决时间 2021-03-22 22:45
- 提问者网友:沉默的哀伤
- 2021-03-22 17:08
如何在AIX系统中找到JVM中最高使用率的线程
最佳答案
- 五星知识达人网友:猎心人
- 2021-03-22 17:14
解决的方法如下,有点复杂:
1、 Java Threads involved in infinite or heavy loopin·
2、 Java Threads involved in excessive / nonstop garbage collection (GC Threads)·3、Java Threads involved in heavy logging / IO activities
Please simply follow the instructions below:
1) Identify the AIX process Id of your Java VM process
2) When high CPU is observed, execute the following command: ps -mp -o THREAD
Example: ps –mp captured of a Weblogic Java process running at 40% CPU utilizationUSER PID PPID TID ST CP PRI SC WCHAN F TT BND COMMANDuser 12910772 9896052 - A 40 60 98 * 342001 - - /usr/java6_64/bin/java -Dweblogic.Nam- - - 6684735 S 0 60 1 f1000f0a10006640 8410400 - - -- - - 6815801 Z 0 77 1 - c00001 - - -- - - 6881341 Z 0 110 1 - c00001 - - -- - - 6946899 S 0 82 1 f1000f0a10006a40 8410400 - - -- - - 8585337 S 0 82 1 f1000f0a10008340 8410400 - - -- - - 9502781 S 30 82 1 f1000f0a10009140 8410400 - - -- - - 10485775 S 0 82 1 f1000f0a1000a040 8410400 - - -- - - 10813677 S 0 82 1 f1000f0a1000a540 8410400 - - -- - - 11206843 S 3 82 1 f1000f0a1000ab40 8410400 - - -- - - 11468831 S 0 82 1 f1000f0a1000af40 8410400 - - -- - - 11796597 S 0 82 1 f1000f0a1000b440 8410400 - - -- - - 19070989 S 0 82 1 f1000f0a10012340 8410400 - - -- - - 25034989 S 2 62 1 f1000a01001d0598 410400 - - -- - - 25493513 S 0 82 1 f1000f0a10018540 8410400 - - -- - - 25690227 S 0 86 1 f1000f0a10018840 8410400 - - -- - - 25755895 S 0 82 1 f1000f0a10018940 8410400 - - -- - - 26673327 S 2 82 1 f1000f0a10019740 8410400 - - -- - - 26804377 S 0 60 1 f1000a0100220998 410400 - - -- - - 27787407 S 0 82 1 - 418400 - - -- - - 28049461 S 2 82 1 f1000f0a1001ac40 8410400 - - -- - - 28114963 S 0 82 1 11a835728 c10400 - - -- - - 29491211 S 0 82 1 f1000f0a1001c240 8410400 - - -- - - 29884565 S 0 78 1 f1000f0a1001c840 8410400 - - -
1、 Java Threads involved in infinite or heavy loopin·
2、 Java Threads involved in excessive / nonstop garbage collection (GC Threads)·3、Java Threads involved in heavy logging / IO activities
Please simply follow the instructions below:
1) Identify the AIX process Id of your Java VM process
2) When high CPU is observed, execute the following command: ps -mp -o THREAD
Example: ps –mp captured of a Weblogic Java process running at 40% CPU utilizationUSER PID PPID TID ST CP PRI SC WCHAN F TT BND COMMANDuser 12910772 9896052 - A 40 60 98 * 342001 - - /usr/java6_64/bin/java -Dweblogic.Nam- - - 6684735 S 0 60 1 f1000f0a10006640 8410400 - - -- - - 6815801 Z 0 77 1 - c00001 - - -- - - 6881341 Z 0 110 1 - c00001 - - -- - - 6946899 S 0 82 1 f1000f0a10006a40 8410400 - - -- - - 8585337 S 0 82 1 f1000f0a10008340 8410400 - - -- - - 9502781 S 30 82 1 f1000f0a10009140 8410400 - - -- - - 10485775 S 0 82 1 f1000f0a1000a040 8410400 - - -- - - 10813677 S 0 82 1 f1000f0a1000a540 8410400 - - -- - - 11206843 S 3 82 1 f1000f0a1000ab40 8410400 - - -- - - 11468831 S 0 82 1 f1000f0a1000af40 8410400 - - -- - - 11796597 S 0 82 1 f1000f0a1000b440 8410400 - - -- - - 19070989 S 0 82 1 f1000f0a10012340 8410400 - - -- - - 25034989 S 2 62 1 f1000a01001d0598 410400 - - -- - - 25493513 S 0 82 1 f1000f0a10018540 8410400 - - -- - - 25690227 S 0 86 1 f1000f0a10018840 8410400 - - -- - - 25755895 S 0 82 1 f1000f0a10018940 8410400 - - -- - - 26673327 S 2 82 1 f1000f0a10019740 8410400 - - -- - - 26804377 S 0 60 1 f1000a0100220998 410400 - - -- - - 27787407 S 0 82 1 - 418400 - - -- - - 28049461 S 2 82 1 f1000f0a1001ac40 8410400 - - -- - - 28114963 S 0 82 1 11a835728 c10400 - - -- - - 29491211 S 0 82 1 f1000f0a1001c240 8410400 - - -- - - 29884565 S 0 78 1 f1000f0a1001c840 8410400 - - -
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯