在JVM启动时如何收集性能/配置文件数据

编程入门 行业动态 更新时间:2024-10-14 02:23:19
本文介绍了在JVM启动时如何收集性能/配置文件数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想要一个自动化的过程,以使用探查器运行数据处理Java程序,或者以某种方式将有关资源使用和GC的典型JVM性能信息转储到数据文件中.这意味着像运行程序"->启动工具"->附加到JVM"->选择保存..."这样的人工流程不适合.

I'd like an automation process to run a data crunching java program with a profiler, or otherwise in a way that will dump typical JVM performance information about resource usage and GC - to a data file. It means a human process like "run the program" --> "start the tool" --> "attach to JVM" --> "select save..." won't fit.

那么,各种JVM配置文件或性能工具中的哪一个可以选择在JVM启动时进行这种连接?

So which of the various JVM profiling or performance tools may have an option to make this kind of attachment on JVM startup?

或者是我可以在应用程序中包含一个库,或者通过在程序中调用它的api来获得相同的最终结果-保存了性能/配置文件数据吗?

Or is there alternatively a library that I can include in my application, arriving at the same end result — of having saved performance/profiling data — perhaps by calling its api from within my program?

推荐答案

您可能想查看YourKit api: www.yourkit/docs/java/api/index.html

You may want to check out YourKit api: www.yourkit/docs/java/api/index.html

更多推荐

在JVM启动时如何收集性能/配置文件数据

本文发布于:2023-11-25 15:11:16,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1630245.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:配置文件   启动时   性能   数据   JVM

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!