Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Connect to a remote Linux JVM running under different user

kaliantagJun 26 2017 — edited Aug 7 2017

I have Apache NiFi 1.2.0 running on a RHEL7, remote VM. Following is the list of running JVMs :

bash-4.2$ ./jps1043 RunNiFi1062 NiFi14810 Jps

On my local Windows 7 machine, I have jdk1.8.0_121 and I am trying to connect the Java Mission Control utility to the 'NiFi' JVM.

Some facts :

  1. The remote RHEL JVMs that I wish to monitor run with a user 'nifi'
  2. Since I am a 'sudoer', I use my own username 'ojoqcu' to SSH(via Putty) to the remote VM and then a 'sudo su - ,su nifi' or simply 'sudo su nifi'. Then, I become the 'nifi' user without providing a password
  3. Now, a JMX URL maybe required to connect jmc to a remote VM but then what port number shall I use? Are there any additional processes that must be started on the remote VM ?

Settings.JPG

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 4 2017
Added on Jun 26 2017
1 comment
1,320 views