在visualVM中自动保存分析器快照 [英] Auto save profiler snapshots in visualVM

查看:107
本文介绍了在visualVM中自动保存分析器快照的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将 VisualVM 配置为自动保存为监视器和分析器选项卡运行的每个 Java 应用程序的快照/历史记录?

Is it possible to configure VisualVM to automatically save snapshots/history of every java application that is running for both the monitor and the profiler tabs?

我有几个每晚运行的应用程序,我想从 VisualVM 收集有关它们的分析器和监视器信息,以便在它们运行后的第二天早上进行额外评估.

I have several applications that run on a nightly basis, and I would like to collect the profiler and the monitor information about them from VisualVM for additional evaluation the morning after they run.

我试着找了一些VisualVM的插件,也试着找了个在eclipse中配置并在JUnits中使用的方法,但是找不到任何选项.

I tried to find some plugins to VisualVM, and also tried to find a way to configure it in eclipse and use it in JUnits, but I could not find any options.

如果这很重要,我正在使用 VisualVM 1.3.8

I am using VisualVM 1.3.8 if this matters

推荐答案

我一直在寻找相同的工具,但它似乎不存在于 VisualVM.JDK 7u40 或更高版本中包含一个替代项,即 Java Mission Control 和 Flight Recorder,它可能为您提供所需的功能.注意:您必须将所需的参数添加到 JVM 才能启用飞行记录器.

I've been searching for the same tool, but it doesn't appear to exist for VisualVM. There's an alterante included in JDK 7u40 or later, Java Mission Control and Flight Recorder, which might give you the functionality needed. Note: You'll have to add the needed arguments to the JVM for flight recorder to be enabled.

https://docs.oracle.com/javacomponents/jmc-5-4/jfr-runtime-guide/run.htm

这篇关于在visualVM中自动保存分析器快照的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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