jvm.options

[engineDir]/configuration/jvm.options

  1################################################################
  2# JVM options of the Axon Ivy Engine
  3################################################################
  4
  5# General settings
  6
  7-XX:-OmitStackTraceInFastThrow
  8
  9#----------------------------------------------------------------
 10
 11# Memory Settings
 12# Xms represents the initial size of total heap space
 13#
 14# Xmx represents the maximum size of total heap space. 
 15# Default is 2 GB which is fine for small installations. 
 16# For medium or large installation this value has to be increased.
 17# The heap space can be monitored in the Engine Cockpit. 
 18# Have a look at Monitor > Engine > Memory
 19
 20-Xms128m
 21-Xmx2g
 22
 23#----------------------------------------------------------------
 24
 25# Garbage collector
 26
 27-XX:+UseG1GC
 28-XX:+UseStringDeduplication
 29
 30#----------------------------------------------------------------
 31
 32# Headless mode
 33# no X11 environment is required
 34
 35-Djava.awt.headless=true
 36
 37#----------------------------------------------------------------
 38
 39# JMX Settings
 40# enable these settings if you want to have JMX access from another
 41# user on the same machine or from a remote host.
 42
 43#-Dcom.sun.management.jmxremote.port=9003
 44#-Dcom.sun.management.jmxremote.login.config=jmx
 45#-Djava.security.auth.login.config=configuration/jaas.config
 46#-Dcom.sun.management.jmxremote.ssl=false
 47#-Dcom.sun.management.jmxremote.autodiscovery=true
 48
 49# Define the port of the JMX remote object. 
 50# The default value is a random port number.
 51# Needs to be configured if the communication with the JMX client goes through a firewall. 
 52# You can use the same port number as defined above for the RMI registry port (see com.sun.management.jmxremote.port).
 53# You need to open both ports (com.sun.management.jmxremote.rmi.port and com.sun.management.jmxremote.port) on the firewall. 
 54
 55#-Dcom.sun.management.jmxremote.rmi.port=9003
 56
 57# Define the IP address or hostname a client can use to establish a connection
 58# with this machine. The default value is the standard IP address of the machine.
 59# Needs to be configured if the JMX client is in an 
 60# external network and the communication with this machine is going through an external 
 61# IP address with network address translation (NAT). 
 62 
 63#-Djava.rmi.server.hostname=<external IP address of the machine>
 64
 65# Define the IP address or hostname of this machine, on which
 66# the JMX ports should be bound.
 67# By default, the JMX ports are bounded to all IP addresses of the machine.
 68
 69#-Dcom.sun.management.jmxremote.host=<IP address of the machine>
 70
 71#----------------------------------------------------------------
 72
 73# Remote Debugging
 74# enable these settings to activate Java remote debugging
 75
 76#-agentlib:jdwp=transport=dt_socket,server=y,address=*:8000,suspend=n
 77
 78#----------------------------------------------------------------
 79
 80# InaccessibleObjectException or IllegalAccessError
 81# With Java 17 it is not allowed to access internal parts of the JDK. (Nether by reflection nor by calling an internal API)
 82# However some libraries use (deep) reflection or internal API which causes now in the following errors:
 83
 84# InaccessibleObjectException can be fixed by:
 85#--add-opens=<source-module>/<package>=<target-module>(,<targetModule>)*
 86
 87# IllegalAccessError can be fixed by:
 88#--add-exports=<source-module>/<package>=<target-module>(,<targetModule>)*
 89
 90#----------------------------------------------------------------
 91
 92# Java Flight Recorder
 93# Enable these settings to activate Java Flight Recorder at Engine startup. 
 94# Note, you can also start the Flight Recorder in the Engine Cockpit.
 95# -XX:StartFlightRecording=delay=1s,disk=true,dumponexit=true,duration=10m,filename=axonivy.jfr 
 96
 97# Set the depth of stack traces that are recorded. 
 98# If Mission Control reports that stack traces were truncated then increase this setting
 99-XX:FlightRecorderOptions=stackdepth=300
100
101#----------------------------------------------------------------