jProfiler找不到JVM [英] jProfiler can't find JVM

查看:983
本文介绍了jProfiler找不到JVM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在生产服务器上启动了jprofiler,经过一些分析之后,我将其杀死了(kill -9).

I've started jprofiler on my production server and after some profiling I've killed it (kill -9 ).

现在,我尝试再次启动它,并且仅收到未找到未配置的JVM".信息, 但是jps命令说我的应用程序正在运行(我可以看到它实际上是由我自己工作的).

Now I'm trying to start it again and receive only "No unprofiled JVMs found." message, but jps command says that my application is running (and I can see that it works by myself actually).

jprofiler可能将有关当前配置文件的jvm的信息存储在某些文件中, kill命令阻止它更新此文件.那么如何手动清洁呢?

Probably jprofiler stores info about which jvms it profiles at the moment in some file and kill command prevented it from updating this file. So how can I clean it manually?

p.s.我尝试删除然后再次解压缩jprofile,但仍然无法正常工作.

p.s. I've tried to delete and then unpack jprofile again, still not working.

推荐答案

JProfiler通过作为JDK一部分的附加API"查找JVM.查看由热点JVM创建的$TMP/hsperfdata_$USER目录.它应包含所有正在运行的JVM的PID文件.如果没有,请删除目录并重新启动所有JVM.

JProfiler finds JVMs via the "Attach API" that is part of the JDK. Have a look at the $TMP/hsperfdata_$USER directory, which is created by the hot spot JVM. It should contain PID files for all running JVMs. If not, delete the directory and restart all JVMs.

这篇关于jProfiler找不到JVM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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