Installing the Agent for Java EE/JMX (Standalone)

The JMX agent can be run outside of an application server. This installation guide describes the required steps.

Notes:

Installing the Agent for Java EE/JMX

  1. Install Java Standard Edition (admin and / or user computer).

    This installation step can be omitted if the required version of Java Standard Edition is already available.

    • Check the current version of your system's Java Virtual Machine (VM) using the following command:

      java -version

      Note that the order of the indicated directories is relevant when specifying %PATH% or $PATH if several versions of JRE or Java SDK are installed on your computer. The Java Runtime Environment listed first is used.

  2. Set up the agent (host).

    • Create a separate folder for the JMX agent and copy the supplied files and the sub-folder "Logs" to it. Instead, you can also use the program SETUP.EXE for the installation. It is available in the supplied directory (Agent).
    • Several settings are available for adjusting the JMX agent to your system environment. Of note are the agent and computer name, and the port of the communication process to which the agent should connect. Configure these settings using the INI file of the JMX agent. For more information, see Agent JMX.
  3. Start the agent.

    • Use the following command to start the agent from the command line (UNIX and Windows): 

      java -jar -Xrs -Xmx256M ucxjjmx.jar

    The agent can also be started by using the ServiceManager. For more information, see ServiceManager.

    The maximum size of the memory allocation poolshould be set to at least 256MB for starting Java agents (Databases, Rapid Automation , JMX, SAP). You can specify a value for the storage limitation of Java applications by using the start parameter -Xmx. Specifying a value that is too low can cause the agent to crash. The default value depends on the Java version that is used. This value must a multiple of 1024 greater than 2MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. If large spool lists or Job logs are transferred the value should be much higher (for example -Xmx1024M).

    The Java parameter -Xrs ensures that the agent keeps running in the Service Manager when a User logs off. It is best to use this parameter on Windows only. More detailed information is provided in the Java documentation.

  4. Important notes for creating jobs (host).

    • Select the option "Local Java VM" in the Job object's JMX tab.
    • Activate the sub-items "Use existing MBean Server" and "Create new instance..."