dcsimg
Out Of Memory Error.
4 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   indira_d
Posted On:   Wednesday, February 27, 2008 02:51 AM

Hi all,


I am getting the java.lang.outofmemoryerror in catalina log.
Can any one please explain how to resolve this issue. This issue occurs due to the lack of jvm heap size.How to increase the jvm heap size.


Thanks in advance.

Re: Out Of Memory Error.

Posted By:   ans_expert  
Posted On:   Monday, May 19, 2008 06:28 AM

get all the details how you can increase heap size in tomcat/jboss Get all the details

Re: Out Of Memory Error.

Posted By:   Anonymous  
Posted On:   Wednesday, March 19, 2008 07:27 AM

Try Changing the shell script specifying those param

java -Xms64m -Xmx512m

where -Xms specifies the initial Java heap size and -Xmx the maximum Java heap size.

Re: Out Of Memory Error.

Posted By:   Stephen_McConnell  
Posted On:   Wednesday, February 27, 2008 09:14 AM

Have you figured out where the OutOfMemory Error is occurring in your program? Maybe you are trying to use too much memory.


Stephen McConnell

Re: Out Of Memory Error.

Posted By:   Anonymous  
Posted On:   Wednesday, February 27, 2008 07:42 AM


Hi,
You can customise tomcat's (rather JVM's) heap size by setting CATALINA_OPTS or JAVA_OPTS Environment variable.
Say, if you want to configure the jvm heap size range from 64mb(min) to 256mb (max), you can do it by following way,

Step 1: Just open the "/bin/catalina.bat" file.

Step 2: Add either of the following statement

* set CATALINA_OPTS="-Xms64m -Xmx250m"
[OR]
* set JAVA_OPTS="-Xms64m -Xmx250m"
Step 3: Save and Start your tomcat.

by
-Karthik
About | Sitemap | Contact