Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HPjmeter Version 3.0.01: Release Notes and Installation Guide > Chapter 4 Compatibility Information and Installation Requirements

Configuring HPjmeter on HP-UX

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

Preparing to run Java

For most installations, linkage to the appropriate libraries is completed automatically as part of the installation process. Go to step 2 if you have a standard installation of the Java Runtime Environment.

  1. Some applications run with an embedded Java Runtime Environment. In this situation, you will need to correctly identify the location of HPjmeter libraries.

    Assuming that JMETER_HOME represents your installation directory, modify the shared library path in your environment as follows:

    • On HP-UX running on HP Precision Architecture systems, add $JMETER_HOME/lib/$ARCH to SHLIB_PATH where $ARCH is PA_RISC2.0 or PA_RISC2.0W.

    • On HP-UX running on Itanium-based systems with Java 5.0, add $JMETER_HOME/lib/$ARCH to LD_LIBRARY_PATH where $ARCH is IA64N or IA64W.

    • On HP-UX running on Itanium-based systems, for JDK 1.4.2.02 or later 1.4.2 versions, use the SHLIB_PATH environment variable to specify the shared library path.

  2. On HP-UX and running Java 1.4.2.02 or later 1.4.2 versions, specify the Xbootclasspath in your java command.

    java -Xbootclasspath/a:$JMETER_HOME/lib/agent.jar ...

    On Java 5.0 and later, -Xbootclasspath is optional.

  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

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2006–2008 Hewlett-Packard Development Company, L.P.