• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Out of Memory

 
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
 
Author and all-around good cowpoke
Posts: 13078
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
 
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
 
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
 
This parrot is no more. It has ceased to be. Now it's a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!