Increasing Heap Space for Eclipse [Closed]

Increasing Heap Space for Eclipse [Closed]

I am using Eclipse on 16.04 and for some programs it gives this message:

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space

How do I increase the allocated heap space?

3

1 Answer

If you need to increase the heap space for the Eclipse itself look for the eclipse.ini file in your Eclipse installation directory and change the value -Xmx1024m. For example, you can increase the heap space on 2GB with -Xmx2048m.

James H. Sterling
Author

James H. Sterling

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.