my dog learned polymorphism*
The moose likes Tomcat and the fly likes out of memory error with Tomcat 5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "out of memory error with Tomcat 5 " Watch "out of memory error with Tomcat 5 " New topic
Author

out of memory error with Tomcat 5

viveka shirbhatea
Greenhorn

Joined: Feb 13, 2007
Posts: 3
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

Joined: Dec 11, 2004
Posts: 13410

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?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
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

Joined: Dec 11, 2004
Posts: 13410

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

Joined: Feb 13, 2007
Posts: 3
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

Joined: Mar 22, 2000
Posts: 12761
    
    5
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: out of memory error with Tomcat 5
 
Similar Threads
Problem running a simple webapplication in struts
error 404 in tomcat 5
NoSuchMethodError
Apache 2.0.49 / Tomcat 5.0.25 Integration
Error when starting tomcat 5.0.25