The following table describes the environment variables understood by the Qpid scripts
contained within the /bin
directory within the Broker distribution.
To take effect, these variables must be set within the shell (and exported - if using Unix) before invoking the script.
Table A.1. Environment variables
Environment variable | Default | Purpose |
---|---|---|
QPID_HOME |
None |
The variable used to tell the Broker its installation directory. It must be an absolute path. This is used to determine the location of Qpid's dependency JARs and some configuration files. Typically the value of this variable will look similar to
If not set, a value for |
QPID_WORK |
User's home directory |
Used as the default root directory for any data written by the Broker. This is the default location for any message data written to persistent stores and the Broker's log file. For example, |
QPID_OPTS |
None |
This is the preferred mechanism for passing Java system properties to the
Broker. The value must be a list of system properties each separate by a space.
|
QPID_JAVA_GC |
-XX:+HeapDumpOnOutOfMemoryError -XX:+UseG1GC
|
This is the preferred mechanism for customising garbage collection behaviour. The value should contain valid garbage collection options(s) for the target JVM. Refer to the JVM's documentation for details. |
QPID_JAVA_MEM |
-Xmx512m -XX:MaxDirectMemorySize=1536m
|
This is the preferred mechanism for customising the size of the JVM's heap and
direct memory.
The value should contain valid memory option(s) for the target JVM. Oracle JVMs
understand For example, Refer to the JVM's documentation for details. |
JAVA_OPTS | None |
This is the preferred mechanism for passing any other JVM options. This variable is
commonly used to pass options for diagnostic purposes, for instance to turn on verbose
GC. Refer to the JVM's documentation for details. |
Apache Qpid, Messaging built on AMQP; Copyright © 2015 The Apache Software Foundation; Licensed under the Apache License, Version 2.0; Apache Qpid, Qpid, Qpid Proton, Proton, Apache, the Apache feather logo, and the Apache Qpid project logo are trademarks of The Apache Software Foundation; All other marks mentioned may be trademarks or registered trademarks of their respective owners