Lenses runs as a JVM app and you can tune runtime configurations via environment variables.
-Xmx3g -Xms512m
-Dlogback.configurationFile=file:/path/to/logback.xml
-server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+DisableExplicitGC -Djava.awt.headless=true