Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jstack results in "Windbg Error: WaitForEvent failed"

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?

like image 502
Ulrich Scholz Avatar asked Apr 28 '14 14:04

Ulrich Scholz


1 Answers

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.

like image 94
bhermont Avatar answered Oct 04 '22 15:10

bhermont