如何在 Java 进程终止时保存 JProfiler 分析
How to save JProfiler profiling on Java process kill
当 java 分析应用程序的进程终止时(例如:kill -9 processId
),jprofiler 关闭分析并说:
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
有什么方法可以在进程终止时立即保存
JProfiler version:11.1.4
编辑:
被杀死的进程不是 jprofiler 的进程,它是正在分析的 java 个进程。
没有办法做到这一点,因为该进程正在被终止,因此该进程中的代码无法再运行。
当 java 分析应用程序的进程终止时(例如:kill -9 processId
),jprofiler 关闭分析并说:
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
有什么方法可以在进程终止时立即保存
JProfiler version:11.1.4
编辑: 被杀死的进程不是 jprofiler 的进程,它是正在分析的 java 个进程。
没有办法做到这一点,因为该进程正在被终止,因此该进程中的代码无法再运行。