• Register
0 votes
105 views

Problem :

I am getting bellow error while I execute my JUnit tests

exception in thread "main" java.lang.outofmemoryerror: gc overhead limit exceeded

6 5 3
6,930 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution: 

The Garbage Collector throws this exception when a lot of time is spent in garbage collection for very small return, e.g. 98% of CPU time spent on GC and 2% of heap is recovered.

The purpose behind this feature's designe is to prevent applications from running for an longer period of time while making very little or no progress because the heap is too small.

One can turn this feature off with the command line option 

-XX:-UseGCOverheadLimit

Further Readings:

https://github.com/rdfhdt/hdt-java/issues/58

9 7 4
38,600 points

Related questions

0 votes
1 answer 189 views
189 views
Problem : I am getting bellow minecraft error minecraft error: java.lang.outofmemoryerror: gc overhead limit exceeded
asked Oct 23, 2019 peterlaw 6.9k points
1 vote
1 answer 42 views
42 views
Problem: I got error while applying weblogic patch useing bsu.sh: patch_download_dir=$FMW_HOME/utils/bsu/cache_dir -patchlist=GFWX -prod_dir=$FMW_HOME/wlserver_10.3 -log=$FMW_HOME/utils/bsu/bsu_weblogic.log Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded ... .bea.plateng.patch.Patch.main(Patch.java:281) Can anyone explain me this and help me to solve this error?
asked Mar 27, 2020 LizzyM 6.1k points
0 votes
1 answer 8 views
8 views
How can I solve this?
asked Dec 28, 2020 TeamScript 9.5k points
0 votes
2 answers 259 views
259 views
Problem : I am getting bellow memory error java.lang.outofmemoryerror requested array size exceeds vm limit
asked Nov 5, 2019 peterlaw 6.9k points
0 votes
1 answer 4 views
4 views
Please help me.
asked 1 day ago TeamScript 9.5k points
0 votes
1 answer 5 views
5 views
Thank you in advance for any help?
asked Jan 5 TeamScript 9.5k points
0 votes
1 answer 8 views
8 views
Help me by solving this problem.
asked Jan 2 TeamScript 9.5k points
0 votes
1 answer 11 views
11 views
I know the problem lies with the recursion.
asked Jan 2 TeamScript 9.5k points
0 votes
1 answer 9 views
9 views
Who can help me to solve this problem?
asked Dec 28, 2020 TeamScript 9.5k points
0 votes
1 answer 11 views