如何在Java进程终止时保存JProfiler分析数据

huangapple go评论63阅读模式
英文:

How to save JProfiler profiling on Java process kill

问题

当终止用于分析应用程序的Java进程(例如:kill -9 processId)时,JProfiler会关闭分析并显示以下消息:

> 网络连接已丢失。JVM 可能已意外终止。如果 JVM 崩溃,请尝试以下策略:
> * 降低被分析应用程序的 -Xmx 值
> * 更改您的分析设置(例如从仪表化更改为采样)或者不再显示此对话框

是否有办法在进程被终止时立即保存分析数据?

JProfiler 版本:11.1.4

编辑:
被终止的进程不是 JProfiler 的进程,而是用于进行分析的 Java 进程。

英文:

when java process of profiling application killed (ex: kill -9 processId), jprofiler closing profiling and saying:

> The network connection has been lost. The JVM might have terminated
> unexpectedly. If the JVM has crashed, please try the following
> strategies:
> * Reduce the -Xmx value of the profiled application
> * Change your profiling settings (e.g. from instrumentation to sampling) O Don't show this dialog again

is there any way for save immiditly when process killed

JProfiler version:11.1.4

Edit:
The killed process is not jprofiler's process, it is java process of which is profiling.

答案1

得分: 1

因为进程已被终止,所以无法进行任何操作,该进程中的代码将无法再运行。

英文:

There is no way to do that, because the process is being killed so no code can run in that process anymore.

huangapple
  • 本文由 发表于 2020年8月17日 21:22:03
  • 转载请务必保留本文链接:https://go.coder-hub.com/63451721.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定