Programming And Stuff, You Know The Thing…

Reducing JVM Memory Footprint

Posted at — Apr 30, 2021

Finally, since OpenJDK runtime v12+ there is decent support for reducing the memory footprint of low-load/standby VMs (ie. most desktop applications, personal indexers etc.). To get a reduced footprint for such VMs, you can use the following command line options as a basis:

-Xms16m -Xmx512m -XX:G1PeriodicGCInterval=300000 -XX:MaxHeapFreeRatio=5 -XX:MinHeapFreeRatio=1

That reduced the footprint of my local Solr document indexer instance from 660 to 190 MB.