Monday, February 8, 2010

Error-Java Heap Scape Out Of Memory Error

When you are running webapplication in tomcat , if you get the error like
Error-Java Heap Scape Out Of Memory Error ,
Solution :
1) Set a System Environmental Varaiable
_JAVA_OPTIONS=-Xmx1G
this means we are increasing the Java heap memory by setting this environmental variable
2) Restart the tomcat. when server again started it will pick the _JAVA_OPTIONS variable so you will get out of the above error

No comments:

Post a Comment