


Hi All,
We are facing below error when we are trying to start AEM. AEM fails to start with
below entry in our stdout.log file
Unrecognized VM option 'MaxPermSize=512M'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Has anyone faced this issue?
Solved! Go to Solution.
Views
Replies
Total Likes
I hope you are starting the AEM from Command Line
Use the following command
java -Xmx1024M -jar cq-quickstart-p4502-6.5.0.jar
or if you need startup gui then add
java -Xmx1024M -jar cq-quickstart-p4502-6.5.0.jar -gui
Option MaxPermSize=256m; support was removed in 8.0 Java.
Also refer this documentation for memory arguments setup instide batch file and starting via batch file itself.
Hope it helps.
Regards,
Rajashankar.R
I hope you are starting the AEM from Command Line
Use the following command
java -Xmx1024M -jar cq-quickstart-p4502-6.5.0.jar
or if you need startup gui then add
java -Xmx1024M -jar cq-quickstart-p4502-6.5.0.jar -gui
Option MaxPermSize=256m; support was removed in 8.0 Java.
Also refer this documentation for memory arguments setup instide batch file and starting via batch file itself.
Hope it helps.
Regards,
Rajashankar.R
Hi @subrato_kha
If you are using AEM 6.5 then you can use the below command to start AEM.
java -jar AEM_6.5_Quickstart.jar -r author -Xmx2048m -XX:+UseParallelGC --add-opens=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED --add-opens=java.base/sun.net.www.protocol.jrt=ALL-UNNAMED --add-opens=java.naming/javax.naming.spi=ALL-UNNAMED --add-opens=java.xml/com.sun.org.apache.xerces.internal.dom=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED -Dnashorn.args=--no-deprecation-warning
Thanks!