java.lang.OutOfMemoryError: GC overhead limit exceeded in Spring Tool Suite

1k views Asked by At

Even after setting the -Xms1024m ,-Xmx4096m,-XX:-UseGCOverheadLimit in sts configuration file, I am still getting the java.lang.OutOfMemoryError: GC overhead limit exceeded in Spring Tool Suite Can anybody tell me what should I do to fix this error..

1

There are 1 answers

2
Sandesh On

The java.lang.OutOfMemoryError: GC overhead limit exceeded error is displayed when your application has exhausted pretty much all the available memory and GC has repeatedly failed to clean it.

if you just wished to get rid of the “java.lang.OutOfMemoryError: GC overhead limit exceeded” message, adding the following to your startup scripts would achieve just that:

-XX:-UseGCOverheadLimit