How to Force Thread Dump in Eclipse?

前端 未结 9 1374
-上瘾入骨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:42

    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.

提交回复
热议问题