Updates to Github #github #java
Pcp Integration <[email protected]>
| Newsgroups | gmane.comp.sysutils.pcp |
|---|---|
| Message-ID | <[email protected]> |
2 New Commits: [parfait:master] By Nathan Scott <[email protected]>: 148b2842e1da ( https://github.com/performancecopilot/parfait/commit/148b2842e1dac0ef29c113885102ab97c4e75774 ) : Implement the JMX proxying mode in the parfait-agent jar This provides a main() method in ParfaitAgent, and all the supporting code/springbean configuration, allowing separate java processes to be monitored. i.e. this now works: java -jar ./lib/parfait.jar -connect=localhost:9875 when a second java program is running with JMX access to port 9875 made available. That is done via properties, e.g. via .properties file or on the command line: java \ -Dcom.sun.management.jmxremote \ -Dcom.sun.management.jmxremote.port=9875 \ -Dcom.sun.management.jmxremote.local.only=false \ -Dcom.sun.management.jmxremote.authenticate=false \ -Dcom.sun.management.jmxremote.ssl=false \ MyApplicationMainClass The other parfait-agent configuration options are also still available, like -Dparfait.name, -Dparfait.interval and so on for fine-tuning the parfait proxy process behaviour. On an implementation note, spring profiles are used to allow mbean definition sharing between the different modes, and to inject different mbeanserver definitions - see local.xml and proxy.xml in particular (and Added: parfait-agent/src/main/resources/local.xml ( https://github.com/performancecopilot/parfait/blob/master/parfait-agent/src/main/resources/local.xml ) Added: parfait-agent/src/main/resources/mbeans.xml ( https://github.com/performancecopilot/parfait/blob/master/parfait-agent/src/main/resources/mbeans.xml ) Removed: parfait-agent/src/main/java/io/pcp/parfait/JmxConnector.java ( https://github.com/performancecopilot/parfait/blob/master/parfait-agent/src/main/java/io/pcp/parfait/JmxConnector.java ) Removed: parfait-agent/src/main/resources/javabeans.xml ( https://github.com/performancecopilot/parfait/blob/master/parfait-agent/src/main/resources/javabeans.xml ) Modified: parfait-agent/src/main/java/io/pcp/parfait/MonitoringViewProperties.java ( https://github.com/performancecopilot/parfait/blob/master/parfait-agent/src/main/java/io/pcp/parfait/MonitoringViewProperties.java ) Modified: parfait-agent/src/main/java/io/pcp/parfait/OptionalMonitoredMBeanRegistrar.java ( https://github.com/performancecopilot/parfait/blob/master/parfait-agent/src/main/java/io/pcp/parfait/OptionalMonitoredMBeanRegistrar.java ) Modified: parfait-agent/src/main/java/io/pcp/parfait/ParfaitAgent.java ( https://github.com/performancecopilot/parfait/blob/master/parfait-agent/src/main/java/io/pcp/parfait/ParfaitAgent.java ) Modified: parfait-agent/src/main/resources/MANIFEST.MF ( https://github.com/performancecopilot/parfait/blob/master/parfait-agent/src/main/resources/MANIFEST.MF ) Modified: parfait-agent/src/main/resources/agent.xml ( https://github.com/performancecopilot/parfait/blob/master/parfait-agent/src/main/resources/agent.xml ) Modified: parfait-agent/src/main/resources/dropwizard.xml ( https://github.com/performancecopilot/parfait/blob/master/parfait-agent/src/main/resources/dropwizard.xml ) Modified: parfait-agent/src/main/resources/jdbc.xml ( https://github.com/performancecopilot/parfait/blob/master/parfait-agent/src/main/resources/jdbc.xml ) Modified: parfait-agent/src/main/resources/proxy.xml ( https://github.com/performancecopilot/parfait/blob/master/parfait-agent/src/main/resources/proxy.xml ) Modified: parfait-agent/src/test/java/io/pcp/parfait/ParfaitAgentArgumentsTest.java ( https://github.com/performancecopilot/parfait/blob/master/parfait-agent/src/test/java/io/pcp/parfait/ParfaitAgentArgumentsTest.java ) Modified: parfait-agent/src/test/java/io/pcp/parfait/ParfaitAgentSpringTest.java ( https://github.com/performancecopilot/parfait/blob/master/parfait-agent/src/test/java/io/pcp/parfait/ParfaitAgentSpringTest.java ) Modified: parfait-jmx/src/main/java/io/pcp/parfait/jmx/MonitoredMBeanAttributeFactory.java ( https://github.com/performancecopilot/parfait/blob/master/parfait-jmx/src/main/java/io/pcp/parfait/jmx/MonitoredMBeanAttributeFactory.java ) [parfait:master] By Nathan Scott <[email protected]>: fdff4ffe8707 ( https://github.com/performancecopilot/parfait/commit/fdff4ffe8707027703f818591197224b60445016 ) : Tweak parfait-agent MANIFEST handling and agent logging (+config) Attempt to tackle a couple of issues Marko came across. Added: parfait-agent/src/main/resources/META-INF/MANIFEST.MF ( https://github.com/performancecopilot/parfait/blob/master/parfait-agent/src/main/resources/META-INF/MANIFEST.MF ) Added: parfait-agent/src/main/resources/log4j2.xml ( https://github.com/performancecopilot/parfait/blob/master/parfait-agent/src/main/resources/log4j2.xml ) Removed: parfait-agent/src/main/resources/MANIFEST.MF ( https://github.com/performancecopilot/parfait/blob/master/parfait-agent/src/main/resources/MANIFEST.MF ) Modified: parfait-agent/pom.xml ( https://github.com/performancecopilot/parfait/blob/master/parfait-agent/pom.xml ) --- [performancecopilot/parfait] Pull request closed by natoscott ( https://github.com/natoscott ) : #36 Implement the JMX proxying mode in the parfait-agent jar ( https://github.com/performancecopilot/parfait/pull/36 ) This provides a main() method in ParfaitAgent, and all the supporting code/springbean configuration, allowing separate java processes to be monitored. i.e. this now works: java -jar ./lib/parfait.jar -connect=localhost:9875 when a second java program is running with JMX access to port 9875 made available. That is done via properties, e.g. via .properties file or on the command line: java \ -Dcom.sun.management.jmxremote \ -Dcom.sun.management.jmxremote.port=9875 \ -Dcom.sun.management.jmxremote.local.only=false \ -Dcom.sun.management.jmxremote.authenticate=false \ -Dcom.sun.management.jmxremote.ssl=false \ MyApplicationMainClass The other parfait-agent configuration options are also still available, like -Dparfait.name, -Dparfait.interval and so on for fine-tuning the parfait proxy process behaviour. On an implementation note, spring profiles are used to allow mbean definition sharing between the different modes, and to inject different mbeanserver definitions - see local.xml and proxy.xml in particular (and