java - How to find dynamically allocated JMX port when port is 0 -


for java application when jmx enabled , port set 0, port dynamically allocated:

-dcom.sun.management.jmxremote.port=0 

what best way find out port allocated? managed find out using ps , pfiles on solaris, hoping there simpler why find (programmatically)

also there better way assign dynamic jmx ports java applications on same box , keep track of them?


Comments

Popular posts from this blog

Line ending issue with Mercurial or Visual Studio -

R - Plot: How to format in 10-base scientific notation and put it text, mtex, title etc functions? -

validation - How to pass paramaters like unix into windows batch file -