user697911
user697911

Reputation: 10531

Eclipse OutOfMemory

My physical memory is 8GB and my Eclipse VM configuration is -ea -Xms512M -Xmx1024M -XX:PermSize=128M -XX:MaxPermSize=512M.

I still got a "

java.lang.OutOfMemoryError: GC overhead limit exceeded

" problem.

How can i fix this? Thank you

Upvotes: 0

Views: 888

Answers (2)

user3024741
user3024741

Reputation: 36

The error you are getting is - even though it is an OutOfMemoryError - not thrown because you don't have enough memory, and therefore increasing your memory won't solve the problem you have. For details, see Error java.lang.OutOfMemoryError: GC overhead limit exceeded

Upvotes: 1

Ernest Friedman-Hill
Ernest Friedman-Hill

Reputation: 81674

That -Xmx1024m means "Never use more than one gigabyte for the heap." If you'd like to double the heap size that Eclipse can use, change it to -Xmx2048m.

Upvotes: 1

Related Questions