jstack results in "Windbg Error: WaitForEvent failed"
Asked Answered
S

2

5

On Windows 7, I try to get a stack trace from a Java process by executing the command

jstack.exe -F xxx

from another Java process, where xxx is the PID of the target process. I'm getting the error

Error attaching to process: Windbg Error: WaitForEvent failed!

Any idea why?

Slr answered 28/4, 2014 at 14:54 Comment(1)
Because I left the company for which i asked my initial question, I somehow have to abandon it.Slr
L
6

It might be that you need to run the command as administrator. If you do not have access rights to the process you will also get that same error message.

Lowdown answered 21/9, 2016 at 20:36 Comment(0)
B
2

One of the possibilities (which may not be your case) is simply incorrect PID (see JDK-6313817 : SA: jstack -F on win32 needs more friendly handling of wrong PID)

Beyond answered 28/8, 2014 at 6:31 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.