Issue

You want to tune your JVM and wonder if there are any standard settings that Adobe recommends.

Solution

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.

此産品由 Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License 授權  Creative Commons 條款未涵蓋 Twitter™ 與 Facebook 文章。

法律說明   |   線上隱私權政策