4.2

You are viewing documentation for an older version of Lenses.io View latest documentation here

JVM options

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

KeyDescription
LENSES_OPTSFor generic settings, Kerberos configuration (e.g SASL/GSSAPI auth to the Brokers). Note that the docker images 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