How to Force Thread Dump in Eclipse?

前端 未结 9 1329
-上瘾入骨i
-上瘾入骨i 2020-12-05 07:03

I\'m launching a Weblogic application inside Eclipse via the BEA Weblogic Server v9.2 runtime environment. If this were running straight from the command-line, I\'d do a ctr

相关标签:
9条回答
  • 2020-12-05 07:51

    You can connect through the JVisualVM and get a thread dump. Just right click on the application node from the Applications tree and select "Thread dump"

    0 讨论(0)
  • 2020-12-05 07:53

    You can do it when you are in debug mode: go to the debug view in the debug perspective, click on the process you have launched and click on pause, you will get a graphical stack of all your processes.

    Note : this also works when using remote debugging, you do not need to launch weblogic from eclipse, you can launch it on its own, open the debugging ports and create a "remote java application debug configuration" for it.

    0 讨论(0)
  • 2020-12-05 07:53

    On linux at least you can do a ps -ef | grep java to get the PID and then do a kill -3 PID and it will output it to the Eclipse console.

    0 讨论(0)
提交回复
热议问题