Ooi Thiam Yew Absent Member.
Absent Member.

Configure parm file to monitor java processes


I would like to know how can I configure the ovpa parm file to recognize java processes as Applications for graphing with OVPM. My OVPA is 4.50 and OVPM is 5.0.

The java processes are as below: -
1) /usr/jdk/jdk1.5.0_07/bin/java -Did=BC -server -Xincgc -Xmx128m -Xms128m -Xss1m
2) /usr/jdk/jdk1.5.0_07/bin/java -Did=Tomcat -server -Xmx512m -Djava.util.logging.
3) java -Did=MS_CRM -Dconfig=/usr/local/conf/DGcommon.conf -Dlog4j.conf
4) /usr/jdk/jdk1.5.0_07/bin/java -Did=SS -Dlog4j.configuration=/usr/local/

I have tried to configure the parm file as below: -
application = Tomcat
cmd = *-Did=Tomcat*

application = BC
cmd = *-Did=BC*

application = SS
cmd = *-Did=SS*

application = MS
cmd = *-Did=MS_CRM*

But, I am not sure whether this is the right config. Would appreciate if somebody can advise on the right configuration.

Thanks in advance.
Tags (1)
1 Reply
Philip Gunter Absent Member.
Absent Member.

Re: Configure parm file to monitor java processes

Hi Ooi,

you need to use the javaarg = true value in your parm file.

There is an example in the default parm file. (/opt/perf/newconfig/parm)
I've copied the section below.



# The following javaarg flag, when true, will affect the PROC_PROC_ARGV1
# metric value for java processes. Instead of using the literal value
# of the first process argument, the PROC_PROC_ARGV1 metric will be set
# to the java classname or jarfile name if it is found somewhere in the
# command string. This can be useful for application definitions using
# the new argv1= discriminator:

javaarg = true

# Two example application definitions specific to java follow.
# They are commented out. To make application data useful on your
# system, you should customize your application definitions to match the
# processes running on your system:
# This example will only work if javaarg is true (see above). It will
# bucket java processes into the application myco-java when their classname
# begins with com.myco.
#application = myco-java
#file = java
#argv1 = com.myco.*
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.