收集Java进程统计信息的最佳工具和JMAP的解释

发布于 2024-08-18 09:16:56 字数 506 浏览 1 评论 0原文

我正在考虑收集更详细的 java 统计信息(以纯文本格式),即 jstat 命令发出的统计信息 - 例如垃圾收集数据等。任何人都可以建议我收集 java 进程统计信息(如 jmap)的最佳工具。

编辑

Google 建议我使用 jmap-histo:live 选项,但我无法理解它实际提供的信息。我使用的命令是

jmap -histo:live $PID

输出:

 num     #instances         #bytes  class name
----------------------------------------------
   1:         13767        1453320  <constMethodKlass>
   2:         13767        1105416  <methodKlass>

I am looking at collecting more detailed java statistics (in plain text format) i.e. statistics that the jstat command emits - like garbage collection data etc. Can anyone please suggest me the best tool to collect the java process statistics like jmap.

EDIT

Google gives me advise to use jmap with -histo:live option, but I am not able to understand what information it actually provides. The command I am using is

jmap -histo:live $PID

Output:

 num     #instances         #bytes  class name
----------------------------------------------
   1:         13767        1453320  <constMethodKlass>
   2:         13767        1105416  <methodKlass>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

彩扇题诗 2024-08-25 09:16:56

您还可以查看 this,它是免费的,是 Java API 的一部分。有一些 教程 解释了如何使用它技术。希望这有帮助......

〜博尔特

You can also take a look at this which is free and is part of the Java API. There are some tutorials that explain how to use this technology. Hope this helps ...

~Bolt

心不设防 2024-08-25 09:16:56

也许您可以研究集成 Shadowtail 与您的应用程序。

Maybe you could investigate integrating Shadowtail with your application.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文