HPjmeter 4.3 Release Notes and Installation Guide
3. Specify the JVM agent in your java command.
On Java 5.0 and later:
$ java -agentlib:jmeter[=options] ...
On Java 1.4.2.02 or later 1.4.2 versions:
$ java -Xrunjmeter[:options] ...
NOTE: If you use the 64-bit JVM agent, you will need to add -d64 to the JVM command
line. For example, type
$ java —d64 HelloWorld
when SHLIB_PATH is $JMETER_HOME/lib/$ARCH and
where $ARCH equals PA_RISC2.0W or IA64W.
See ”JVM Agent Options” in the HPjmeter User's Guide for the list of available options and
their descriptions.
Example Usage
Using -agentlib on Java 6.0 to run the JVM agent:
$ /opt/java6/bin/java -agentlib:jmeter myapp
Using -agentlib on Java 5.0 to run the JVM agent plus options to set minimum and maximum
heap size:
$ /opt/java1.5/bin/java -Xms256m -Xmx512m -agentlib:jmeter myapp
Setting -Xbootclasspath and using -Xrunjmeter on Java 1.4 to run the JVM agent plus
options to set minimum and maximum heap size:
$ /opt/java1.4/bin/java -Xms256m -Xmx512m -Xbootclasspath/a:$AGENT \
-Xrunjmeter myapp
Starting the Console On HP-UX
There are two ways to start the console on HP-UX.
• From the command line, type
$ /opt/hpjmeter/bin/hpjmeter
The console will be ready to display performance data. Connect to a JVM agent for real-time
data, or read a profile data file using the main window tool bar as described in the product
documentation.
• From an instance of HP Systems Insight Manager, select the systems that are running
applications that you want to monitor or profile.
Then from the HP Systems Insight Manager menu bar, click Tools →Java Management
→HPjmeter Console.
Installing the Console on Linux
To install the console on a Linux system, type:
$ chmod +x Linux_console_package.sh
$ sh Linux_console_package.sh
The program will install in /opt/hpjmeter as the default location if you are logged in as root
or su. If a DISPLAY has not been set, the installation will occur in console mode.
The console requires at least 1 GB of memory for operation.
14 Compatibility Information and Installation Requirements