如何在Eclipse中强制线程转储? [英] How to Force Thread Dump in Eclipse?

查看:316
本文介绍了如何在Eclipse中强制线程转储?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Eclipse中通过BEA Weblogic Server v9.2运行时环境启动Weblogic应用程序。如果这是直接从命令行运行,我会执行一个ctrl-BREAK强制线程转储。有没有办法在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆