You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Minh Tu Thanh Tran <ki...@gmail.com> on 2006/10/04 10:04:25 UTC
Problem: Tomcat server hang because CPU goes to 100%
Dear friends,
When I click on different links or button in my jsp page quickly, normally
everythings is ok but sometime
the tomcat server hang, it can not response to the requests anymore because
the
CPU goes to 100%
If I publish my website, and when it may happens again the CPU goes to
100% long enough to break down the CPU. That would be terrible.
Does anyone know any reason that may cause the CPU runs to 100% like this?
Seconds, is there any java method that can take care the CPU and he
can shut down or start up the tomcat server if needed?
Many thanks,
Tu
Re: Problem: Tomcat server hang because CPU goes to 100%
Posted by Minh Tu Thanh Tran <ki...@gmail.com>.
Hi Leon Rosenberg,
Do you have the sample code like what you show me? I would be much graceful
if you could send me some more code on this matter.
Thank you very much
Tu
On 10/4/06, Leon Rosenberg <ro...@googlemail.com> wrote:
>
> create a thread dump (kill -QUIT <pid) and look for the thread that hangs.
> then fix the bug :-)
> regards
> Leon
>
> On 10/4/06, Minh Tu Thanh Tran <ki...@gmail.com> wrote:
> > Dear friends,
> >
> > When I click on different links or button in my jsp page quickly,
> normally
> > everythings is ok but sometime
> > the tomcat server hang, it can not response to the requests anymore
> because
> > the
> > CPU goes to 100%
> >
> > If I publish my website, and when it may happens again the CPU goes to
> > 100% long enough to break down the CPU. That would be terrible.
> >
> > Does anyone know any reason that may cause the CPU runs to 100% like
> this?
> > Seconds, is there any java method that can take care the CPU and he
> > can shut down or start up the tomcat server if needed?
> >
> > Many thanks,
> >
> > Tu
> >
> >
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
Re: Problem: Tomcat server hang because CPU goes to 100%
Posted by Leon Rosenberg <ro...@googlemail.com>.
create a thread dump (kill -QUIT <pid) and look for the thread that hangs.
then fix the bug :-)
regards
Leon
On 10/4/06, Minh Tu Thanh Tran <ki...@gmail.com> wrote:
> Dear friends,
>
> When I click on different links or button in my jsp page quickly, normally
> everythings is ok but sometime
> the tomcat server hang, it can not response to the requests anymore because
> the
> CPU goes to 100%
>
> If I publish my website, and when it may happens again the CPU goes to
> 100% long enough to break down the CPU. That would be terrible.
>
> Does anyone know any reason that may cause the CPU runs to 100% like this?
> Seconds, is there any java method that can take care the CPU and he
> can shut down or start up the tomcat server if needed?
>
> Many thanks,
>
> Tu
>
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org