Search code examples
javaspring-bootjmxjconsolespring-jmx

How to connect to local application via jconsole using remote process?


I have ordinary spring boot application and am able to connect to that application using jconsole when I choose it from the Local Processes group:

enter image description here

But I want to connect to my application remotely. Firstly I want to connect from the same PC but using remote process.

I tried to type localhost:1099 and localhost:1199 but it doesn't connect:

enter image description here

I didn't pass any special VM keys.

How can I connect using remote process?


Solution

  • I was able to connect when I used port from -Dcom.sun.management.jmxremote.port