Skip to main content

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​

Procedure​

  1. In Runtime Manager, go to Integrations and open the integration.
  2. Choose Add Capability, then JVM.
  3. Fill what you need: JVM Options, Remote Debugging, Trusted CA Certificates.
  4. Choose Apply changes.

Parameters​

FieldWhat it isDefault
JVM OptionsFlags the JVM starts with, such as -Xmx512m.—
Extra ClasspathExtra places the JVM looks for classes, separated by colons.—
Application JARThe JAR that runs the application. Empty for an integration built by the platform.—
AgentsAgents downloaded and attached, each written name;url[;options].—
Remote DebuggingLet a debugger attach to the JVM.Off
Debug AddressWhere the JVM listens for a debugger.*:5005
Wait for the DebuggerHold the integration until a debugger attaches.Off
Trusted CA CertificatesA PEM file of certificate authorities, chosen in a stored configuration.—
Keep Public AuthoritiesAlso trust the public authorities Java ships with.On
Truststore PasswordThe 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 -Xmx below 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​