在JVM启动时如何收集性能/配置文件数据 [英] How to collect performance/profiling data as of JVM startup

查看:72
本文介绍了在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:

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

这篇关于在JVM启动时如何收集性能/配置文件数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆