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?
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.