Sun Java jstat 有时不起作用!
我经常使用jstat来获取GC相关的统计信息。然而,有时我根本无法从 JVM 获取任何统计信息。它只是说它找不到进程 ID,即使它是正确的 ID。
稍微深入一点,它似乎与“/tmp/hsperfdata”相关文件有关。在具有此目录/文件的服务器上,jstat 按预期工作(jps 也显示正确的实例)。在失败的服务器/实例上,我看不到“/tmp/hsperfdata”目录(并且 jps 不报告 pid)。
还有其他人遇到过这个吗?我在某处读到需要正确设置 TMP 变量,但我没有看到它工作的服务器帐户和不工作的服务器帐户之间的环境设置有任何差异。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论