• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Tomcat 5.5 in Production

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67651
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Abiramkumar .P", please check your email for animportant message from me.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic