2
I have a linux server running a JRE 1.7 and I need to use Visualvm to monitor the performance of applications running on it.
Visualvm uses JMX to connect to the linux host but it expects something like
<hostname>:<port>
At first I thought it was the ssh port 22, but searching I read that it is the JVM port on the server.
How do I find the door the JVM is running?
In Windows environment is used the PID, would not be the same for Linux environment ?
– Homer Simpson
Run the netstat -tlnp command, you will see the list of open ports
– Bruno Rigolon
@Brunorigolon Don’t you think this can be an answer instead of a comment?
– Flávio Granato
@Fláviogranato, was waiting generating the image to show the output of the command.
– Bruno Rigolon