Configuring JVMs in z/OSMF

To monitor a Java™ virtual machine (JVM) that runs in z/OSMF, use the JVM_OPTIONS environment variable to add the enablement options.

About this task

The environment variables are defined to the DDNAME STDENV, which can define an MVS data set, an HFS PATH statement, or an in-stream data set.

There are two ways to add the enablement options.

Procedure

  1. Option 1: In $ZOSMF_DATA_DIR/configuration, create a file named local_override.cfg. If the override file already exists, you can edit it.
    Note: If you use /var/zosmf, the full path is /var/zosmf/configuration/local_override.cfg

    Add multiple enablement options in a single line separated by \n

    For example:

    JVM_OPTIONS='-Dcom.ibm.tivoli.kjj.collector.id=KJJ1\n-javaagent:/rtehome/usr/lpp/kan/bin/IBM/kjj.jar\n-agentpath:/rtehome/usr/lpp/kan/bin/IBM/libkjjagent_64.so'

  2. Option 2: Place the enablement options in another file and use -Xoptionsfile in local_override.cfg file. For example:
    JVM_OPTIONS='-Xoptionsfile='/var/zosmf/configuration/OMEGJVM_Options''
    Then place the enablement options in the OMEGJVM_Options file. For example:
    -Dcom.ibm.tivoli.kjj.collector.id=KJJ1                                
    -javaagent:/rtehome/usr/lpp/kan/bin/IBM/kjj.jar          
    -agentpath:/rtehome/usr/lpp/kan/bin/IBM/libkjjagent_64.so