This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Out of Memory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Products » Tomcat
Bookmark "Out of Memory" Watch "Out of Memory" New topic

Out of Memory

Chit Ming Chong
Ranch Hand

Joined: Sep 09, 2004
Posts: 49
Dear all,

My department is running a few jsp web applications using tomcat. Almost everyday we will encounter an error saying "out of memory". We need to restart the webcontainer to continue. Does anyone had such problem before? Can someone tell me what would be the most likely cause and how to solve it.

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13001
Does anyone had such problem before?

Searching in this forum should find you LOTS of memory use related message threads.
Bharath Chinnadurai Maharajan

Joined: Dec 22, 2004
Posts: 26

I guess the error msg u get is Out of Environment space. Dis prob comes in machines running in win 98 or me or below. for dis........right click the startup.bat file and choose properties and select memory and change the initial environment entry from Auto to atleast 2816 or more. Repeat de same for de shutdown.bat file as well.

Hope that helps u
Bharath Chinnadurai
SCJP 1.4

hemanth kp

Joined: Apr 06, 2005
Posts: 9

Why dont you try to null all the objects used at the end in the Java code so that it will facilitate the Garbage Collector to reclaim any unused memory.

I agree. Here's the link:
subject: Out of Memory
It's not a secret anymore!