I am trying to increase the max heap size for my Eclipse. I have tried specifying in eclipse.ini
or through the command line, but are not working.
My m
It is possible to increase heap size allocated by the Java Virtual Machine (JVM) by using command line options.
-Xms set initial Java heap size
-Xmx set maximum Java heap size
-Xss set java thread stack size
If you are using the tomcat server, you can change the heap size by going to Eclipse/Run/Run Configuration and select Apache Tomcat/your_server_name/Arguments and under VM arguments section use the following:
-XX:MaxPermSize=256m
-Xms256m -Xmx512M
If you are not using any server, you can type the following on the command line before you run your code:
java -Xms64m -Xmx256m HelloWorld
More information on increasing the heap size can be found here