Friday, July 29, 2011

Increasing Heap Memory of Tomcat

If your server gives error like Out Of Memory :java heap size then try the following.


Apache Tomcat

To increase minimum and maximum heap size for Tomcat applications set the CATALINA_OPTS environment variable before starting Tomcat. To set the same heap sizes, on UNIX edit the Tomcat startup.sh script and add a line:


    export CATALINA_OPTS=-Xms16m -Xmx256m;

No comments:

Post a Comment

Spring Boot Config Server and Config Client.

 In Spring cloud config we can externalise our configuration files to some repository like GIT HUT, Amazon S3 etc. Benefit of externalising ...