JVM options


Lenses runs as a JVM app and you can tune runtime configurations via environment variables.

KeyDescription
LENSES_OPTSFor generic settings, such as the global truststore. Note that the docker image is using this to plug in a prometheus java agent for monitoring Lenses
LENSES_HEAP_OPTSJVM heap options. Default setting are -Xmx3g -Xms512m that sets the heap size between 512MB and 3GB. The upper limit is set to 1.2GB on the Box development docker image.
LENSES_JMX_OPTSTune the JMX options for the JVM i.e. to allowing remote access.
LENSES_LOG4J_OPTSOverride Lenses logging configuration. Should only be used to set the logback configuration file, using the format -Dlogback.configurationFile=file:/path/to/logback.xml.
LENSES_PERFORMANCE_OPTSJVM performance tuning. The default settings are -server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+DisableExplicitGC -Djava.awt.headless=true
--
Last modified: November 5, 2024