• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

My application hangs in Tomcat

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I have an application which is running in Tomcat 5.5. It is developed with the heavy use of Spring/Hibernate. It runs well for 1-2 hrs but then just hangs. Tomcat does not show any error (out of memory or some other) in the logs but does not respond to any request. I can only see the app's login page once it hangs.

In my application, a set of 10 jobs (Quartz API) get fired after every 5 minutes. I checked the logs and these jobs tohether take just 3 seconds to finish when the server is running normally. I have checked my code many a times but I doubt its my code's problem.

I have also tried increasing the heap size but it did not help either.

I am really confused as to what can be the issue. Is it some problem with Spring/Hibernate configuration, Memory leaks?

Please suggest me how can i really diagnose the problem and fix it.

Cheers,
Nitin
 
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
One of the common causes of problems like this is running out of database connections. In your code are you always sure to close database connections after you use them?
 
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
You might try monitoring with Tomcat's Management application. You can see memory use and request Thread use. I was highly surprised one time to see that my Tomcat had maxed out request Threads due to an improperly removed application - result, it could not respond to new requests.

Bill
 
joke time: What is brown and sticky? ... ... ... A stick! Use it to beat this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic