如何在Eclipse远程调试器中找到有问题的线程? [英] How to find problematic thread in Eclipse remote debugger?
问题描述
您可以尝试生成线程转储(CTRL + Break,如此线程)。
或者您可以将JConsole附加到远程会话(因此现在将Eclipse放在一边),监视线程并生成线程转储。
alt text http://www.jroller .com / dumpster / resource / tdajconsole.png
I have a web application running in a jboss application server (But it is not jboss specific so we could also assume it is a tomcat or any other server). Now I have the problem that one thread seems to be in dead-lock situation. It uses 100% CPU all the time. I have started the server with enabled debug port and I can connect Eclipse to it. But the problem is: There are a lot of threads running. How can I find the right thread? I know the process id (from Linux "top" command) but I think this will not help. Do I really have to open each thread separately and check what they are currently doing? Or is there a way to filter the threads for "most active" or something like that in Eclipse?
You can try and generate a thread dump (CTRL+Break as shown in this thread).
Or you could attach a JConsole to the remote session (so leaving Eclipse aside for now), monitor the threads and generate a thread dump.
alt text http://www.jroller.com/dumpster/resource/tdajconsole.png
这篇关于如何在Eclipse远程调试器中找到有问题的线程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!