By default JMX remote port is not enabled in WebSphere, We have to manually enable the JMX remote port. Here I am giving some steps to enable the JMX remote port in Websphere.
This has been done with Websphere 7.0.
After installation of web sphere application server 7.0, fallow the fallowing steps to configure Remote JMX port.
Login to Admin console of the web sphere any profile(server), short cut will be available in start menu programs.
deploy the PerfServletApp.ear application if not deployed already.
GO TO Applications IN LEFT PANE CLICK WebSphere Enterpise Applications TO CHECK PerfServletApp.ear IS DEPLOYED OR NOT.
IF NOT THEN CLICK New Application UNDER Applications. BROWSE FROM WebSphere directory -> AppServer -> InstallableApps.
FOLLOW THE STEPS.
Enable the PMI Data and set all the statistics enabled.
GO TO Monitoring and Tuning IN LEFT PANE CLICK ON Performance Monitoring Infrastructure(PMI) IN CONIFGURATION TAB ENABLE THE PMI AND
SET THE ALL STATISTICS. ALSO SET THE ALL STATISTICS IN Runtime Tab. SAVE THE CHANGES.
Set the generic jvm argument = -Djavax.management.builder.initial= -Dcom.sun.management.jmxremote
in Severs -> Server Types -> WebSphere Application Servers
shows the servers list. click on the server you want.
In the right pane -> Server Infrastructure -> Java and Process Management click on Process definition, again in Additional Properties of Configuration tab
click on Java Virtual Machine. put the -Djavax.management.builder.initial= -Dcom.sun.management.jmxremote in Generic Jvm Argument field.
and save changes.
To enable the JMX remote port open the below properties file and add the code below.
FILE : WebSphere directory \AppServer\java\jre\lib\management\management.properties
SAVE THE MASTER DATA AND STOP THE SERVER AND START THE SERVER TO LOAD THE CHANGES………
I Love you man, u safe my file 🙂 Greatest Post
When I restart the server and try to connect using jconsole to localhost:9001 I get a connection refused error in jconsole. I disabled my firewall while trying this out – that didnt help either.
Any thoughts on why this might be? The output from netstat -anp|grep 9001 didnt give anything – meaning my websphere was not listening on the port. Would appreciate any pointers on why that might be.
Can u elobarate how did u enabled the remote port to connect from jconsole?.. By default it is not enabled.
I realized later on I was missed setting up the management.properties file in the jre directory. I had specified those settings in a custom location and for reason that was breaking my entire WAS install.
Your solution does work as is, thanks for checking back.
Thanks for your comments mate… keep visiting this site…
Hi , thanks i have followed your steps to enable the JMX connection , But i am using the tool called zabbix (monitoring) to monitor the websphere JVM, by following the above steps i can now see the JMX port is listening locally , but zabbix tool is not getting any data from JVM to monitor . So now i am in situation that to find its a zabbix issue or WAS not forwarding any jvm data … any idea…?
I am sorry Jey, I have never used Zabbix. Let me try my end and get back to you if I find any solutions.
Hi, I have a question, How to do for enable jconsole in websphere but in ISeries AS400?