Cool Solutions

Monitor ZENworks Services using Java VisualVM from a remote system

Ravish G

By:

September 25, 2018 9:38 am

Reads:822

Comments:1

Score:5

Print/PDF

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” -J-Djavax.net.ssl.keyStore=C:\Users\user\Desktop\Files\visualvm\server.keystore -J-Djavax.net.ssl.trustStore=C:\Users\user\Desktop\Files\visualvm\zenCaCertStore -J-Djavax.net.ssl.keyStorePassword=replacewithcontentof_ passphrase.txt  -J-Djavax.net.ssl.trustStorePassword=replacewith contentof_zenCacertPassphrase.txt -J-client -J-Xms1024m -J-Xmx5120m

OR

Create a Jvisualvm launch file using Python:

Configuring Prereq:

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

2. Set the environment variable “java_home=java path”

Steps:

1.Copy and run “collect_data_on primary.py” on ZCM server

2.Copy and run “JvisualVML.py” on local Desktop

https://www.novell.com/communities/coolsolutions/wp-content/uploads/sites/2/2018/09/JvisualVML-2.zip

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.

Note:

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

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

1

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

    Ravish,

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

Comment

RSS