MiloCasagrande/custom-jmx-agent
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
= Custom Java JMX Agent = This is a simple custom JMX agent in order to prevent firewall problems with the default RMI random port usage. = Build = To build the JAR file, in the top directory execute: ant clean && ant build The file will be locate in the 'build/' directory. = Execute = To execute it, attach it to the Java application with: -Drmi.custom.registry.port=PORT -javaagent:PATH/TO/FILE.jar or -Drmi.custom.registry.port=PORT -Drmi.custom.server.port=PORT -javaagent:PATH/TO/FILE.jar The `rmi.custom.registry.port' is optinal, and the port will be set to the default value of `7199'. The `rmi.custom.server.port' is optional, and the default value will be 'rmi.custom.registry.port + 1'.