Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sun Java jstat does not work .. sometimes !

I frequently use jstat to obtain GC related statistics. However, there are times when I simply cannot obtain any of the statistics from a JVM. It just says that it cannot find the process id, even though its the correct id.

Digging slightly deeper, it seems to be related to the "/tmp/hsperfdata" related files. On servers that have this directory/files, jstat works as expected (jps also shows up the correct instances). On the servers/instances on which it fails, I dont see the "/tmp/hsperfdata" directory (and jps does not report the pid).

Has anyone else run into this ? I read somewhere that the TMP variable needs to be set correctly, but I dont see any difference in environment settings between the server account where it works and where it does not.

like image 890
souser Avatar asked Nov 14 '22 08:11

souser


1 Answers

Maybe this helps: http://bugs.sun.com/view_bug.do?bug_id=7009828

like image 125
StanMarsh Avatar answered Nov 27 '22 19:11

StanMarsh