Monitor ZENworks Services using Java VisualVM from a remote system


Java VisualVM:

Java VisualVM is a tool that provides a visual interface for viewing detailed information about Java applications while they are running on a Java Virtual Machine (JVM).

Java VisualVM can be used to monitor performance. Java VisualVM allows you to generate and analyze heap dumps, track down memory leaks, browse the platform's MBeans and perform operations on those MBeans, monitor garbage collection, and perform lightweight memory and CPU profiling.

Create a Jvisualvm launch file manually:

  1. From the server copy the following files to the local system:

keystore, zenCaCertStore, passphrase.txt, zenCacertPassphrase.txt

Files location:

a. Linux server: “/etc/opt/novell/ZENworks/security ”

b. windows server: “%ZENWORKS_HOME%\conf\security”

  1. Create a launch.bat file with the following content:

"C:\Program Files\Java\jdk1.8.0_121\bin\jvisualvm.exe"\Users\user\Desktop\Files\visualvm\server.keystore\Users\user\Desktop\Files\visualvm\zenCaCertStore passphrase.txt contentof_zenCacertPassphrase.txt -J-client -J-Xms1024m -J-Xmx5120m


Create a Jvisualvm launch file using Python:

Configuring Prereq:

1. Create a share on the local system and modify the share path in the script

2. Set the environment variable "java_home=java path"


1.Copy and run "collect_data_on” on ZCM server

2.Copy and run “" on local Desktop

Connecting to remote JMX:

Execute the launch.bat file to launch jvisualvm and “Add Remote Host”.

Add remote host and add the JMX connection using the port number: zenserver_service=61495, zenloader_service=61491

Double click on the JMX connection and start monitoring.


  1. The server hostname should resolve to the IP address on the local host or add ZEN_JMX_OPTS "-Djava.rmi.server.hostname=IP_address".



How To-Best Practice
Comment List
Related Discussions