• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

GC overhead limit exceeded

 
Ranch Hand
Posts: 1402
3
Netbeans IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I get the next error



It happens if I use several users in Jmeter for example 20.

I have in my JVM 6 G memory. And I have increase the CPU. Any idea please?

Thanks
 
Ranch Hand
Posts: 75
Tomcat Server Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
> java.lang.OutOfMemoryError: GC overhead limit exceeded

that means exactly "GC overhead limit exceeded". Please don't be confused with "OutOfMemoryError", as that's just a secondary information in this case. Generally speaking, GC is pretty uncontrolled, more objects you destroy quickly, more chance that GC will struggle. Also, this message means that GC (garbage collector) is taking an excessive amount of time (by default 98% of all CPU time of the process) and recovers little memory in each run (by default 2% of the heap). So when you keeping increasing heap size to cosmic amount without a good reason (is your tomcat really use all of this?) will cause... that 2% of heap limit for GC increase, which may cause "GC overhead limit exceeded" exceptions even often.

You can try to add switch to disable errors: -XX:-UseGCOverheadLimit
But when GC struggle with GC tasks, everything can happen next.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic