Sun Java jstat 有时不起作用!

发布于 2024-09-14 12:05:27 字数 296 浏览 4 评论 0原文

我经常使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文