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.
Hai All, My web application runing in Tomcat 5.5 server in production. Once i start the tomcat,my application is working fine for some hours. After some hours,application automaticaly stopped.Even i not able to see home page.Once i restart my service(tomcat),application is working fine. How can rectify this problem.Please give me a solution.
There are two possibilities you need to consider: 1. Your application simply needs more memory to operate with the given load. 2. Your application is not properly managing memory resulting in so-called memory leaks which eventually crash the system.
If this was my problem I would start by monitoring Tomcat with the manager application, paying particular attention to the memory and Thread statistics. Does this application use connections to databases?
Joined: Jul 17, 2007
Thanks for your reply william,
Actually i am not using database,Datas are stored in XML files. In server, we had 1 GB RAM and we configured Apache Tomcat Properties as -DCatalina.opt -xms 768m - xmx 1024m
Originally posted by Abiramkumar .P: ... we configured Apache Tomcat Properties as -DCatalina.opt -xms 768m - xmx 1024m
That's not how I usually set the heap space. If you go to the ServerStatus section in the Tomcat manager app (http://localhost:8080/manager/html) it will show you how much memory has been allocated to the JVM.