简体   繁体   中英

jProfiler can't find JVM

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

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).

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?

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

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.

look at this QA , it is not possible to unload a Jprofiler agent on a java process unless you kill the jp.

I'm not sure if you can really kill the agent.

"No unprofiled JVMs found." message will occur when you start Jprofiler twice. Try to restart the monitored java application.

On the WLS server, this usually means that you restarted the server and have two JVMs rumming. I run this to start jpenable: ./jpenable --gui --port=8888 --pid=$WLS_ID and get this error: The JVM with PID 14690 is not unprofiled.

Kill the one listed: kill -9 14690

Rerun the jpenable startup command above with this output: Connecting to weblogic.Server [18037] ... You can now use the JProfiler GUI to connect on port 8888

18037 is the PID of the JVM that can not be connected with the JProfiler client

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM