Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

out of memory error with Tomcat 5

 
viveka shirbhatea
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Tomcat 5 but very frequently i faced on error

HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.OutOfMemoryError
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.25 logs.

Apache Tomcat/5.0.25
[ February 13, 2007: Message edited by: viveka shirbhatea ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It could be that you have a memory leak in your app.
It could also be that your app just needs mroe heap space than the default 64k that the JVM allots itself.

Have you tried increasing the heapspace with the -Xms and -Xmx JVM switches?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Note that the Tomcat Management application lets you monitor a running tomcat to see what the memory use is and what the various Threads are doing.

As a security precaution, the management app is not in the standard download, you have to get it separately.

Bill
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The management app is still a part of the standard download.
It's the Admin app that you now have to download separately.

The management app, however, doesn't have a default user name and password.
You can set those in the tomcat/conf/tomcat-users.xml file.

If you installed with the exe version, you also had the opportunity to set the user name and password from within the install wizard.
 
viveka shirbhatea
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have alrady add CATALINA_OPTS
and the value equal to -Xmx512m in enviornment varaible but it still showing same error.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you fired up the management app to take a look at what it can tell you?

Personally I have found it very useful.

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic