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:+UseStringDeduplication
 28
 29#----------------------------------------------------------------
 30
 31# Headless mode
 32# no X11 environment is required
 33
 34-Djava.awt.headless=true
 35
 36#----------------------------------------------------------------
 37
 38# JMX Settings
 39# enable these settings if you want to have JMX access from another
 40# user on the same machine or from a remote host.
 41
 42#-Dcom.sun.management.jmxremote.port=9003
 43#-Dcom.sun.management.jmxremote.login.config=jmx
 44#-Djava.security.auth.login.config=configuration/jaas.config
 45#-Dcom.sun.management.jmxremote.ssl=false
 46#-Dcom.sun.management.jmxremote.autodiscovery=true
 47
 48# Define the port of the JMX remote object. 
 49# The default value is a random port number.
 50# Needs to be configured if the communication with the JMX client goes through a firewall. 
 51# You can use the same port number as defined above for the RMI registry port (see com.sun.management.jmxremote.port).
 52# You need to open both ports (com.sun.management.jmxremote.rmi.port and com.sun.management.jmxremote.port) on the firewall. 
 53
 54#-Dcom.sun.management.jmxremote.rmi.port=9003
 55
 56# Define the IP address or hostname a client can use to establish a connection
 57# with this machine. The default value is the standard IP address of the machine.
 58# Needs to be configured if the JMX client is in an 
 59# external network and the communication with this machine is going through an external 
 60# IP address with network address translation (NAT). 
 61 
 62#-Djava.rmi.server.hostname=<external IP address of the machine>
 63
 64# Define the IP address or hostname of this machine, on which
 65# the JMX ports should be bound.
 66# By default, the JMX ports are bounded to all IP addresses of the machine.
 67
 68#-Dcom.sun.management.jmxremote.host=<IP address of the machine>
 69
 70#----------------------------------------------------------------
 71
 72# Remote Debugging
 73# enable these settings to activate Java remote debugging
 74
 75#-agentlib:jdwp=transport=dt_socket,server=y,address=*:8000,suspend=n
 76
 77#----------------------------------------------------------------
 78
 79# InaccessibleObjectException or IllegalAccessError
 80# With Java 17 it is not allowed to access internal parts of the JDK. (Nether by reflection nor by calling an internal API)
 81# However some libraries use (deep) reflection or internal API which causes now in the following errors:
 82
 83# InaccessibleObjectException can be fixed by:
 84#--add-opens=<source-module>/<package>=<target-module>(,<targetModule>)*
 85
 86# IllegalAccessError can be fixed by:
 87#--add-exports=<source-module>/<package>=<target-module>(,<targetModule>)*
 88
 89#----------------------------------------------------------------
 90
 91# Java Flight Recorder
 92# Enable these settings to activate Java Flight Recorder at Engine startup. 
 93# Note, you can also start the Flight Recorder in the Engine Cockpit.
 94# -XX:StartFlightRecording=delay=1s,disk=true,dumponexit=true,duration=10m,filename=axonivy.jfr 
 95
 96# Set the depth of stack traces that are recorded. 
 97# If Mission Control reports that stack traces were truncated then increase this setting
 98-XX:FlightRecorderOptions=stackdepth=300
 99
100#----------------------------------------------------------------
101
102# SSL / TLS
103# Enable the following setting to only allow TLS version 1.3 and disable TLS version 1.2.
104# TLS versions SSL3, 1.0, 1.1 are disabled by default.
105# See also property jdk.tls.disabledAlgorithms that can be set in the JVM's conf/security/java.security file 
106# for more options. 
107# ‑Djdk.tls.client.protocols="TLSv1.3" 
108
109#----------------------------------------------------------------