JBoss AS 7.1 standalone | java.lang.OutOfMemoryError: GC overhead limit exceeded

Discussão em 'StackOverflow' iniciado por Stack, Janeiro 29, 2021.

  1. Stack

    Stack Membro Participativo

    I have to do a big bug fixing on a big Maven project (7 war, 16 sub-project with pom.xml) developed on Eclipse but when I deploy 4 of this war and try to use the project by a browser, when jboss try to elaborate a request that require a lot of memory, DB use, etc the process fails and in console I have errors like:


    Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded


    Initialization of bean failed; nested exception is java.lang.OutOfMemoryError: GC overhead limit exceeded
    ​

    And other errors that depends of JVM/JBoss and no by code. I have tried to add this parameters to every sub-project that compose the war that give me the problem but I haven't solved my problem:


    (right click on every sub-project) - Run as - Run configuration... - JRE - VM Arguments


    -Xms2048M -Xmx2048M -XX:+UseG1GC -XX:+UseLargePages -XX:+AggressiveOpts
    ​

    Re-deploy on JBoss but noting happen, always the same errors and sometimes I can't deploy because this errors appear during the deploy on JBoss. Actually my phisical pc has 32Gb RAM, 500gb .m2 SSD and i7 8th gen. JBoss AS 7.1 standalone, if this parameters can help for a solution.

    Thanks to everyone help me.

    Continue reading...

Compartilhe esta Página