Reputation: 10531
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
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
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