我想要一个自动化的过程,以使用探查器运行数据处理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启动时如何收集性能/配置文件数据
发布评论