Cool Solutions

Monitor ZENworks Services using Java VisualVM from a remote system

Ravish G


September 25, 2018 9:38 am





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


1 vote, average: 5.00 out of 51 vote, average: 5.00 out of 51 vote, average: 5.00 out of 51 vote, average: 5.00 out of 51 vote, average: 5.00 out of 5 (1 votes, average: 5.00 out of 5)
You need to be a registered member to rate this post.

Tags: , ,
Categories: Cool Tools, Endpoint Security, IT Operations Management, Security, Technical, Unified Endpoint Management, ZENworks, ZENworks TKB


Disclaimer: This content is not supported by Micro Focus. It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test it thoroughly before using it in a production environment.

1 Comment

  1. By:asudheer


    The port no for ZENServer should be 61495 instead of 61595.