Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Out of Memory

 
Chit Ming Chong
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Thanks
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone had such problem before?

Searching in this forum should find you LOTS of memory use related message threads.
Bill
 
Bharath Chinnadurai Maharajan
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

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
TC
Bharath Chinnadurai
SCJP 1.4
 
hemanth kp
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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.

Regards,
Hemanth
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic