Enable JMX on WebSphereIn the admin console (Application server > server1
> Process Definition > JVM), add the following text into the
field for Generic JVM Argument, at the beginning of the arg line:
-Djavax.management.builder.initial= -Dcom.sun.management.jmxremote
Add or uncomment the following three lines in the /opt/IBM/WebSphere/AppServer/java/jre/lib/management/management.properties
file (or <Your WebSphere JRE>/ lib/management/management.properties):
com.sun.management.jmxremote.port=9999 //any port you like, but make sure you use this port when you connect
com.sun.management.jmxremote.authenticate=false
com.sun.management.jmxremote.ssl=false
Restart WebSphere.
Configure non-secure JMX connection requirementsIn each of the plugin files (LiveCycle_Foundation-plugin.xml,
LiveCycle_Process-plugin.xml, and LiveCycle_Services-plugin.xml)
edit the following section. Change localhost to the IP address of
the Agent computer. Change port number 8888 to the JMX port number
used for WebSphere.
<property name="PROC_QUERY" value="State.Name.eq=java,Args.*.ct=8888"/>
<config>
<option name="jmx.url" description="JMX URL to MBeanServer" default="service:jmx:rmi:///jndi/rmi://localhost:8888/jmxrmi"/>
<option name="jmx.username" description="JMX username" optional="true" default=""/>
<option name="jmx.password" description="JMX password" optional="true" default="" type="secret"/>
<option name="process.query" description="PTQL for Java Process" default="State.Name.eq=java,Args.*.ct=8888"/>
</config>
Configure secure JMX connection requirementsIn the LiveCycle_Foundation-plugin.xml file on
the Agent computer, insert your JMX user name and JMX password.
For example:
<option name="jmx.username" description="JMX username" optional="true" default="monitorRole"/>
<option name="jmx.password" description="JMX password" optional="true" default="admin"/>
In the LiveCycle_Process-plugin.xml file on the Agent computer,
edit the settings in the PROC_QUERY section to
match the setting in the LiveCycle_Foundation-plugin.xml file.
In the LiveCycle_Services-plugin.xml file on the Agent computer,
edit the settings in the PROC_QUERY section to
match the setting in the LiveCycle_Foundation-plugin.xml file.
|
|
|