Last active
October 11, 2021 00:36
-
-
Save rwunsch/5a6c57cdfe1209710c10f6ee40a6034e to your computer and use it in GitHub Desktop.
AEM - Collection of JVM Opts
From: https://adobe-acs.slack.com/archives/aem-general/p1460662346002618
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Standard: | |
-Xmx -- Increase heap size to 50% total machine ram, or 24gb -- whichever is smaller | |
-XX:+UseG1GC -- More efficient server GC in Java 8 | |
-XX:+UseAES -XX:+UseAESIntrinsics -- Use Hardware crypto features for AES if available | |
-XX:+AggressiveOpts -- Experimental faster JVM tunings | |
-Djava.awt.headless=true -- Required for headless unix boxes for Java2D support to work properly | |
-Djava.io.tmpdir=/tmp -- Recommended to set somewhere with fast i/o | |
Debugging: | |
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp -- Used for triaging heap full errors | |
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000 -- Remote debugging on port 8000 | |
Monitoring (JMX): | |
-Dcom.sun.management.jmxremote.port=8502 -- Enable JMX on port 8502 | |
-Dcom.sun.management.jmxremote.authenticate=false -- Set this if no auth is required for JMX (assuming firewalls, etc) | |
-Dcom.sun.management.jmxremote.ssl=false -- Recommended as well if used on a VPN or local network | |
TarMK: | |
-XX:MaxDirectMemorySize -- Use this to limit how much direct memory is mapped and prevent TarMK from using too much virtual memory | |
Query-heavy environments: | |
# https://chl-author.corp.adobe.com/content/help/en/experience-manager/kb/performance-tuning-tips.html | |
-Doak.queryLimitInMemory=500000 (see also Oak documentation) | |
-Doak.queryLimitReads=100000 (see also Oak documentation) | |
-Dupdate.limit=250000 | |
-Doak.fastQuerySize=true | |
Assets: | |
-Dsun.java2d.cmm=sun.java2d.cmm.kcms.KcmsServiceProvider -- Switch back to KCMS (Kodac Color management service) in Java 8. Fixes issues with asset rendition generation in Java 8. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment