java stack dump on windows

后端 未结 7 890
自闭症患者
自闭症患者 2020-11-30 02:19

I have a running java process in a standard windows command window. ie i have run \'cmd\' and typed in java -jar ...

I need to be able to get a full stack dump of al

7条回答
  •  感动是毒
    2020-11-30 03:22

    In the Java 6 JDK+ the jvisualvm executable allows you to attach to a running program (double click on its entry in the left side).

    When attached, there is a Threads pane on the right side, which has a Thread Dump button.

    This gives you a thread dump.

    Once generated you can A) Select all - Copy and paste the thread dump to a text editor. or B) you can Right click on the thread dump created in the tree on the left hand side and say "Save as".

    Notes jvisualvm also allows you to take snapshots of the whole application for later analyzis.

提交回复
热议问题