How to Force Thread Dump in Eclipse?

2019-01-13 20:35发布

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 ctrl-BREAK to force a thread dump. Is there a way to do it in Eclipse?

9条回答
聊天终结者
2楼-- · 2019-01-13 21:19

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"

查看更多
劳资没心,怎么记你
3楼-- · 2019-01-13 21:20

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.

查看更多
登录 后发表回答