1

I am getting Unhandled event loop exception GC overhead limit exceeded error in eclipse ,with this error eclipse hangs on.

I searched for resolution and applied tricks but didn't work.

In eclipse.ini file I added below to increase memory allocation for eclipse, but no luck.

-Xms256m -Xmx1024m -XX:MaxPermSize=256m

Any help is highly appreciated.

Ravi Ranjan
  • 231
  • 1
  • 4
  • 10

1 Answers1

0

Oracle mentioned that

If more than 98% of the total time is spent in garbage collection and less than 2% of the heap is recovered, an OutOfMemoryError will be thrown.This feature is designed to prevent applications from running for an extended period of time while making little or no progress because the heap is too small. If necessary, this feature can be disabled by adding the option -XX:-UseGCOverheadLimit to the command line.

Basically Eclipse would need more memory if you are using more number of plugins to your IDE environment like C++ , PHP, Java EE etc... The Xmx will provide additional memory for java to run. If you are using more plugins in your IDE, try using a basic one which contains only the essential core functions.

Arjan Tijms
  • 37,782
  • 12
  • 108
  • 140
BDRSuite
  • 1,594
  • 1
  • 10
  • 15