Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Making jstack in Java 5 work.  RSS feed

 
Todd Baxter
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Error attaching to process: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process

This is on Linux.

Anybody have any idea how to make jstack work?
 
Santhosh Kumar
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are just trying to get the stacktrace of the running java application, then you can also try kill -3 <pid> where pid is the java process id.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!