java - Can visualvm connect automatically via JMX to a remote process? -


i have java process running on remote machine, , process sets mbeans. have jstatd running on machine same user java process. (the mbeans can set programmatically or using -dcom.sun.management.jmxremote... etc, doesn't appear make difference).

visualvm able make jstatd connection process, discovers automatically, means don't access mbeans or, example, cpu history chart. alternatively can create explicit jmx connection, gives me usual range of useful tools, want application assigned random jmx port when starts, config can't static.

is there way visualvm auto-connect process via jmx? require auto-discover jmx ports, have thought jstatd that. know of plugins visualvm automate this?

unfortunately there no way assign random jmx port remote application. can start remote application

-dcom.sun.management.jmxremote.port=<fixed port> -dcom.sun.management.jmxremote.ssl=false -dcom.sun.management.jmxremote.authenticate=false 

and visualvm able read configuration via jvmstat (provide jstatd) , open jmx connection remote application automatically. need assign fixed port(s) remote application(s). once have it, work fine , visualvm automatically connect application via jmx (in fact combine data both jvmstat , jmx).


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -