• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

out of memory error with Tomcat 5

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic