如何在Eclipse中强制线程转储? [英] How to Force Thread Dump in Eclipse?
问题描述
确实(感谢VonC指向SO线程),Dustin,指出他的消息,指向 jstack 。
我在Eclipse中运行了一些Java应用程序(带有GUI),我可以在Windows进程中看到相关的javaw.exe经理及其PID,7088(当然在Unix中更简单)。
如果我在命令提示符下输入 jstack 7088
,我有每个线程需要的堆栈转储。
酷。
如果我们可以直接从Eclipse ,但是已经有用了。
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?
Indeed (thanks VonC to point to the SO thread), Dustin, in a comment to his message, points to jstack.
I have run a little Java application (with GUI) in Eclipse, I can see the related javaw.exe in Windows' process manager and its PID, 7088 (it is even simpler in Unix, of course).
If I type at a command prompt jstack 7088
, I have the wanted stack dump per thread.
Cool.
Would be better if we could do that directly from Eclipse, but that's already useful as is.
这篇关于如何在Eclipse中强制线程转储?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!