HP Process Resource Manager User's Guide

Configuring and enabling PRM on the command line
Configuring PRM
Chapter 7138
Launching a Java program under PRM
To always run a Java program in a specific PRM group, use an
application record. In this record, specify the full path of the Java binary
as the application. Also, give the classname as an alternate name.
(Specifically, the alternate name you specify should match the first
argument to the Java binary that is not preceded by a dash ( - ) in the
COMMAND column of the ps -ef output.)
For example, consider a Java program run with classname TrainDemo.
In this scenario, an application record might look like this:
Figure 7-2 Application record for a Java program
NOTE The full path of the Java binary used must appear in either the file
/etc/shells or the file /opt/prm/shells.
For more information on specifying Java programs in application
records, see “Application record syntax” on page 128.
/opt/java1.4/bin/IA64N/java::::GroupA,TrainDemo
Name of PRM group that
Java program should run in
Classname
Full path of the
being used,
Java binary
according to the
ps -ef output