Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connect visualvm to websphere 7

I am trying to get visualvm and websphere 7 to work together on my local windows desktop. I try to connect through JMX but no luck. Has anybody managed to get visialvm and websphere 7 to work and ow did you do it?

Regards FF

like image 656
user271858 Avatar asked Feb 12 '10 16:02

user271858


2 Answers

I got it to work with the help of the VisualVM team in Praha (Thanks Tomas!):

1) On the admin console (Click on Servers -> Server types -> WebSphere application servers -> server1 -> Java and Process Management -> Process definition -> Java Virtual Machine), add the following line into the field of
Generic JVM Argument (note that the first system property is equal to
nothing and no equal sign for the second system property):

-Djavax.management.builder.initial= -Dcom.sun.management.jmxremote

2) Add or uncomment the following three lines in file /opt/IBM/ WebSphere/AppServer/java/jre/lib/management/management.properties (or / lib/management/management.properties):

com.sun.management.jmxremote.port=3333
com.sun.management.jmxremote.authenticate=false
com.sun.management.jmxremote.ssl=false
com.sun.management.jmxremote.local.only=false

3) Connect VisualVM!

like image 178
user271858 Avatar answered Nov 08 '22 08:11

user271858


It is possible to set these parameters port, authenticate and ssl as JVM Arguments like -Dcom.sun.management.jmxremote.port=1300

I have another issue: by using the mbean visualvm plugin I can not see any relevant Websphere mbean.

like image 21
David Avatar answered Nov 08 '22 10:11

David