• Post Reply Bookmark Topic Watch Topic
  • New Topic

jstack doesn't work?  RSS feed

 
Ivan Jouikov
Ranch Hand
Posts: 269
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've had no problems using kill -3 on java proccesses to get a thread dump in my system.out, but it doesn't work when the java proccess is frozen.

I tried using jstack, but it won't work either - just gives me a bunch of exceptions... I have the latest java and everything... Any idea what could be the problem?

Here's what stack gives me btw:

 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's "frozen", exactly? If the target JVM is truly hosed in some way, it simply may be unable to respond.

jstack's man page has a note about how it's unsupported and might go away at any point -- that doesn't give me a lot of confidence in its robustness.
 
Ivan Jouikov
Ranch Hand
Posts: 269
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when I say frozen I mean it doesn't respond and kill -9 wont get rid of it.

Oh and that's some bad news about jstack... so what are my options?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know what jstack is or does, but have you tried "sudo kill -9 ..."? If that doesn't get rid of the process, something else on your system is seriously wrong.
 
Ivan Jouikov
Ranch Hand
Posts: 269
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well I'm root to begin with... people are telling me it's some io device problem...

The only thing that my app is using that could use IO is Hibernate which's using database on the same computer...

My cpu and memory are fine, syslog is clean... My java is up to date (1.5.0_04)... When app freezes, DB is still running fine, so this is really confusing..
 
RashMin Gadhavi
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ivan Jouikov wrote:Well I'm root to begin with... people are telling me it's some io device problem...

The only thing that my app is using that could use IO is Hibernate which's using database on the same computer...

My cpu and memory are fine, syslog is clean... My java is up to date (1.5.0_04)... When app freezes, DB is still running fine, so this is really confusing..


I too face same problem. My tomcat's all 200 threads are used.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!