It happens suddenly. Sometimes after I deploy the application, sometimes while I'm navigating on the site to test it.
One thing that comes to mind is that maybe I have DBCP misconfigured, but I don't think so. I registered it as a HiveMind service according to the instructions of someone here on the mailing list, I retrieve a DataSource only when I need it and I close the connection as soon as I don't need it. On 6/22/06, Hugo Palma <[EMAIL PROTECTED]> wrote:
Can you pinpoint what you do just before the CPU hits 99.9% or does it use up all CPU as soon as you start tomcat and the app is deployed ? On 6/22/06, Rui Pacheco <[EMAIL PROTECTED]> wrote: > > Hi all > > I am developing a web application with Java 5, Tapestry 4.0.2, Commons > DBCP > 1.2.1, Tomcat 5.5.17 and MySQL 5.0.19. > > While I develop my application I noticed a strange behaviour: Java usage > suddenly climbs up to 99.9% and never goes down. > The server (RHLE) is fine and responsive, but Tomcat stops responding to > requests. If I deploy a new war file, he won't uncompact it, if I try to > access a web page, he won't serve it, if shut it down, the process will > continue running. I have to kill -9 to get rid of it. > > I believe this problem is with Tapestry because it happens on all the > servers I deploy the application. It happens on the development server and > on my laptop running Ubuntu Dapper and Java 6. > > My laptop has no problem running other Java applications for as long as I > need them, like JEdit and Aquadata Studio. The development server used to > have a JSP based website that also worked withouth a problem, except for > the > common developer mistakes. > > Is there a way for me to diagnose whats happening? Any special flags to > pass > to the VM or some über-secret-hidden log you know about? > -- > Cumprimentos, > Rui Pacheco > >
-- Cumprimentos, Rui Pacheco