Sunday 11 June 2017

Configure Java VisualVM for BW6 analysis



Performance testing is one of the crucial activity to measure software  sustainability and reliability. To understand the memory usage of the BW6 software, the JAVA virtual machine needs to be monitored. In this post, the steps are described to configure an Java VirsualVM with TIBCO BW6 server.

1. Copy the AppNode configuration file at location /data/appdata/tibco/tibco/bw/<<version>>/domains/<<domainName>>/appnodes/<<appSpaceName>>/<<appNodeName>>/config.ini in a temporary location. 

2. Add the following properties to the file 

#JMX parameters for monitoring via Java VisualVM

Jmx.Enabled=true
java.property.com.sun.management.jmxremote=true
java.property.com.sun.management.jmxremote.port=9999
java.property.com.sun.management.jmxremote.authenticate=false
java.property.com.sun.management.jmxremote.ssl=false

3. Push this properties to the run time environment. (following the steps as mentioned in the blog tibco-bw6-application-runtime)

4. Download and install Java JDK 7 or higher.

5. Run the executable: "C:\<<installationLocation>>\jdk<version>\bin\jvisualvm.exe"

6. Click on Application --> Remote --> "Add Remote Host"

7.  Specify the host name. 


8. Right click on the host name and add JMS connection.


9. Provide the host and port number. This is the one that is used in the AppNode tra file JMX properties mentioned in #2 and click OK


10. It will take a few while before it makes the connection.
It should be noted that the  JMX connection should be recreated when ever there is a restart of AppSpace or the AppNode.

No comments:

Post a Comment