views:

791

answers:

2

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

+3  A: 

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->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

3) Connect VisualVM!

A: 

Thanks! that was veru helpfull for me. But now i have two server at same node, and management.properties configuration is at websphere level.

so, it's possible to assign another port number to monitor the second server, or switch the monitored server?

PRF