Set JVM Options
Pass flags to the JVM of an integration, attach a debugger or an agent, extend its classpath, and choose the certificate authorities it trusts.
How it works
This setting passes options to the JVM that runs the routes: heap size, garbage collector, system properties, a debug port, an agent. It also selects the certificate authorities the integration trusts for outgoing TLS.
Heap below the memory limit
Leave room for metaspace, threads and direct buffers: -Xmx at about two thirds of the memory limit is a sound start.
Prerequisites
- An integration, created and bound to an environment.
Procedure
- In Runtime Manager, go to Integrations and open the integration.
- Choose Add Capability, then JVM.
- Fill what you need: JVM Options, Remote Debugging, Trusted CA Certificates.
- Choose Apply changes.
Parameters
| Field | What it is | Default |
|---|---|---|
| JVM Options | Flags the JVM starts with, such as -Xmx512m. | — |
| Extra Classpath | Extra places the JVM looks for classes, separated by colons. | — |
| Application JAR | The JAR that runs the application. Empty for an integration built by the platform. | — |
| Agents | Agents downloaded and attached, each written name;url[;options]. | — |
| Remote Debugging | Let a debugger attach to the JVM. | Off |
| Debug Address | Where the JVM listens for a debugger. | *:5005 |
| Wait for the Debugger | Hold the integration until a debugger attaches. | Off |
| Trusted CA Certificates | A PEM file of certificate authorities, chosen in a stored configuration. | — |
| Keep Public Authorities | Also trust the public authorities Java ships with. | On |
| Truststore Password | The password of the truststore that is built. | changeit |
Behavior and limits
- Applying this setting restarts the integration; it does not rebuild its image.
- Set the heap with
-Xmxbelow the memory limit of the integration, leaving room for the rest of the JVM. - Remote debugging is for development environments: it lets whoever reaches the port control the JVM.
See also
- Integrations: every setting at a glance
- Trust a Private Certificate Authority
- Size an integration