Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Specify Java Options for a Controller or Agent

Info

The below examples make use of the -Xms128m -Xmx500m Java options that are used to specify heap memory requirements.

Do not feel tempted to apply the values from the below examples that are used for explanation purposes only.

Unix Operating Systems

For Unix, the JAVA_OPTIONS environment variable can be set before running the Controller or Agent start script like this:

  • From the Unix command line or from the Controller instance start script controller_<instance>.sh:

    Code Block
    languagebash
    titleUnix example to run the Controller start script with Java options
    # Set Java options before running the Controller start script
    export JAVA_OPTIONS="-Xms128m -Xmx500m"
    ./controller.sh start
    
    # Alternatively set Java options when running the Controller start script
    ./controller.sh start --java-options="-Xms128m -Xmx500m"
    
    # For use with a Controller daemon add this line to the Controller instance start script controller_<instance>.sh
    export JAVA_OPTIONS="-Xms128m -Xmx500m"
  • From the Unix command line or from the Agent instance start script agent_4445.sh (assuming that port 4445 is used for the Agent):

    Code Block
    languagebash
    titleUnix example to run the Agent start script with Java options
    # Set Java options before running the Agent start script
    export JAVA_OPTIONS="-Xms128m -Xmx500m"
    ./agent.sh start
    
    # Alternatively set Java options when running the Agent start script
    ./agent.sh start --java-options="-Xms128m -Xmx500m"
    
    # For use with an Agent daemon add this line to the Agent instance start script agent_<port>.sh
    export JAVA_OPTIONS="-Xms128m -Xmx500m"
  • Alternatively the JAVA_OPTIONS environment variable can be set with

...

Specify Java Options for JOC Cockpit

Info

The below examples make use of the -Xms128m -Xmx500m Java options that are used to specify heap memory requirements.

Do not feel tempted to apply the values from the below examples that are used for explanation purposes only.

Unix Operating Systems

For Unix the JAVA_OPTIONS environment variable can be set before running the Jetty start script like this:

...