GC Overhead limit exceeded. | Community
Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Asutosh_Jena_
Asutosh_Jena_Accepted solution
New Participant
Aug 24, 2021 10:53 AM UTC

Hi @lone_ranger 

 

Update the start up script that brings up AEM server with

CQ_JVM_OPTS='-server -Xmx2048m -XX:MaxPermSize=256M -Djava.awt.headless=true'  in   crx-quickstart/bin

 

If did not work then Modify it to -Xmx4096m and test

 

If you work on local and start the server with cmd line/terminal then simply pass it in

java -Xmx2048M -jar <publish>.jar

 

Thanks!

4 replies

Level 2
Aug 24, 2021 5:13 PM UTC

Hi @lone_ranger ,

 

Check if your machine is having sufficient RAM, and as a good practice allocate 40% to 60% of memory to heap and 10% to MaxPermSize by updating below command.

 

CQ_JVM_OPTS='-server -Xmx{more than 2 GB }m -XX:MaxPermSize=10% of memory M -Djava.awt.headless=true

 

so if your server is having 16GBs memory have below configuration.

CQ_JVM_OPTS='-server -Xmx8192m -XX:MaxPermSize=1024M -Djava.awt.headless=true

 

Please let me know if you still face the issues, there are other ways to upload large size packages as well.

 

Regards

~Shya

 

Translate
Level 4
Aug 24, 2021 5:52 PM UTC

Thanks @shya for detail explanation.

Translate
joerghoh
Employee
Aug 24, 2021 2:34 PM UTC

During the upload the code seems to buffer a lot in memory, thus you should increase the heap available to AEM.

Translate
Asutosh_Jena_
Asutosh_Jena_Accepted solution
New Participant
Aug 24, 2021 10:53 AM UTC

Hi @lone_ranger 

 

Update the start up script that brings up AEM server with

CQ_JVM_OPTS='-server -Xmx2048m -XX:MaxPermSize=256M -Djava.awt.headless=true'  in   crx-quickstart/bin

 

If did not work then Modify it to -Xmx4096m and test

 

If you work on local and start the server with cmd line/terminal then simply pass it in

java -Xmx2048M -jar <publish>.jar

 

Thanks!

Translate