pthulasiram / jmxetric

Automatically exported from code.google.com/p/jmxetric
MIT License
0 stars 0 forks source link

processName variable #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This is more a feature request than a bug :

I have multiple instances of the same java process to monitor. I cannot use the 
same xml definition file because the ProcessName is hardcoded in the xml file.
Is there a simple way to set the processName in the command line, or an 
environment variable ?
example :
. in the xml file: jvm process="${processName}" 
. in command line: java -javaagent:jmxetric.jar=config=jmxetric.xml 
-Dprocess=myProc1 ...

thank you in advance

Original issue reported on code.google.com by xavier.m...@gmail.com on 7 Sep 2010 at 5:03

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
sorry I did not read well enough the example in the readme file, it works ok !

sorry for the "issue"

Original comment by xavier.m...@gmail.com on 7 Sep 2010 at 5:46

GoogleCodeExporter commented 8 years ago

Original comment by jasper...@gmail.com on 14 Sep 2010 at 7:16