Forum Stats

  • 3,767,816 Users
  • 2,252,720 Discussions
  • 7,874,335 Comments

Discussions

how to get a stack dump of PID

P Suresh
P Suresh Member Posts: 63 Blue Ribbon
edited Jan 23, 2018 4:53PM in Java User Groups Discussions

Hi All,

Please let me know how can i get a stack Dump of the PID.

I tried the following and it is error-ing out.

D:\Oracle\Java\bin>jstack -F -l  5724 E:\Backup\LOGS\jstack.txt

Attaching to core E:\Backup\LOGS\jstack.txt from executable 5724, please wait...

Error attaching to core file: Windbg Error: OpenDumpFile failed!

sun.jvm.hotspot.debugger.DebuggerException: Windbg Error: OpenDumpFile failed!

        at sun.jvm.hotspot.debugger.windbg.WindbgDebuggerLocal.attach0(Native Method)

        at sun.jvm.hotspot.debugger.windbg.WindbgDebuggerLocal.attach(WindbgDebuggerLocal.java:160)

        at sun.jvm.hotspot.HotSpotAgent.attachDebugger(HotSpotAgent.java:673)

        at sun.jvm.hotspot.HotSpotAgent.setupDebuggerWin32(HotSpotAgent.java:569)

        at sun.jvm.hotspot.HotSpotAgent.setupDebugger(HotSpotAgent.java:335)

        at sun.jvm.hotspot.HotSpotAgent.go(HotSpotAgent.java:304)

        at sun.jvm.hotspot.HotSpotAgent.attach(HotSpotAgent.java:156)

        at sun.jvm.hotspot.tools.Tool.start(Tool.java:191)

        at sun.jvm.hotspot.tools.Tool.execute(Tool.java:118)

        at sun.jvm.hotspot.tools.JStack.main(JStack.java:92)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:498)

        at sun.tools.jstack.JStack.runJStackTool(JStack.java:140)

        at sun.tools.jstack.JStack.main(JStack.java:106)

Thanks in advance,

-Suresh

P Suresh

Answers