Sist oppdatert
7. mai 2021
Issue
CQ5.x or AEM6.0 is running on Java 1.7 and the java process crashes. An hs_err* file is generated in the AEM installation folder. The file contains a message similar to this:
# # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007f5cb8d9e2ee, pid=21988, tid=140030416733952 # # JRE version: Java(TM) SE Runtime Environment (7.0_45-b18) (build 1.7.0_45-b18) # Java VM: Java HotSpot(TM) 64-Bit Server VM (24.45-b08 mixed mode linux-amd64 compressed oops) # Problematic frame: # J org.apache.http.impl.cookie.BestMatchSpec.formatCookies(Ljava/util/List;)Ljava/util/List; # # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again # # If you would like to submit a bug report, please visit: # http://bugreport.sun.com/bugreport/crash.jsp #
Environment
CQ5.x or AEM6.0 running on Java 1.7
Cause
This is caused by a bug in the Oracle JVM - JDK-8021898
Resolution
The bug is fixed in Java 1.7 u60 and 1.8. Make sure if you update to Java 1.8 that it is compatible with your version of AEM. Note that 1.8 isn't compatible with CQ5.x. Alternatively, this JVM option can be added instead of updating the Java version:
-XX:-LoopUnswitching
The JVM parameter can be added to the CQ_JVM_OPTS variable in the start script.