Tuesday, February 2, 2010

Eclipse - increase Java heap space

The server side of the web server use apache tomcat to deploy the service, then an error message "Java heap space" occurs. Maybe Tomcat or the Java program needs more heap space...

For Tomcat, Run->Debug config->click the Tomcat->Arguments->VM arguments
add "-Xmx1500M"

For Java program, Run->Debug config->click the Java Application->Arguments->VM arguments
add "-Xmx1500M"

No comments:

Post a Comment