File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Tomcat 5.5 in Production Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 5.5 in Production" Watch "Tomcat 5.5 in Production" New topic
Author

Tomcat 5.5 in Production

Abiram kumar
Greenhorn

Joined: Jul 17, 2007
Posts: 3
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.

Thanks,
Abiram kumar
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

I would start by reading the logs in $CATALINA_HOME/logs to see what is causing Tomcat to crash.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Abiram kumar
Greenhorn

Joined: Jul 17, 2007
Posts: 3
Thanks for your reply Ben Souther.I am getting outof memoryError (java heap Space).
How can i overcome java heap space in tomcat 5.5 server.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12835
    
    5
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?

Bill
Abiram kumar
Greenhorn

Joined: Jul 17, 2007
Posts: 3
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

but still the problem is occuring.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

"Abiramkumar .P", please check your email for animportant message from me.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat 5.5 in Production