Skip to content
Advertisement

JProfiler is able to find JVM process for one user but can find it for another user on the same machine

I have an ec2-instance with two different users, ec2-user and other-user and I have some jvm processes running on each. I am trying to remote connect via JProfiler but I cannot seem to be able to find the JVM processes in JProfiler (version 12.0.3 Build 12084)

So I started digging into the box to check whats happening, here is what i found

JavaScript
JavaScript

9014 here is the pid of the java process and the file contains some binary data. However there is another java process run as ec2-user, but that is not showing up in /tmp/hsperfdata_ec2-user.

The two JVMs only differ in the version they are started with

The one that is for the java process run as ec2-user

JavaScript

The other one for the other-user

JavaScript

I ran ps aux |grep java and found both pids functioning.

I tried to delete the directory, restart the jvm process for ec2-user and then try to attach it again but that did not work.

I also tried to use a different version of JProfiler locally like this on the ec2-instance

JavaScript

I am at a loss at how to progress. I was scrounging around for logs for JProfiler remote agent but so far have not found anything. I thought it was a permissions issue on the directories but they seem to be fine. I was checking the release logs but nothing stood out.

Can someone please help me with this?

Advertisement

Answer

Figured it out. I had this jvm arg enabled in the other process

JavaScript

Once I removed this flag, it was all smooth sailing.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement