• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat 5.5 in Production

 
Abiram kumar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would start by reading the logs in $CATALINA_HOME/logs to see what is causing Tomcat to crash.
 
Abiram kumar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64724
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Abiramkumar .P", please check your email for animportant message from me.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic