英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论