Tune your JVM
Last updated on May 18, 2021 10:02:01 AM GMT | Also Applies to Communiqué
You want to tune your JVM and wonder if there are any standard settings that Adobe recommends.
AEM (CQ) does not behave differently than any other Java programs out there when it comes to JVM parameters. There is no default setting. Every application built with AEM has different characteristics. Each could require modification and observation until you find the optimum values for your JVM.
- If you are getting out-of-memory errors, either add memory or make that there isn't a memory leak. If there is a memory leak, use -XX:-HeapDumpOnOutOfMemoryError to get a heap dump and analyze it to find the root cause. You can use any heap dump analyzers, such as sap memory analyzer, yourkit profiler, or eclipse memory analyzer.
- Turn on garbage collection logs to understand the behavior of your application's memory usage.
Make sure that you look at the available JVM options from your JVM vendor. For Java sun, it's here: http://java.sun.com/javase/technologies/hotspot/vmoptions.jsp. And on the Internet, there are plenty of articles on tuning JVM; most of which are applicable to any Java program.