You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Lukasz Kucharski <lk...@gmail.com> on 2005/07/07 14:58:56 UTC
Tomcat slows down after couple of requests
I have a pretty strange problem with Tomcat and I don't know what's
causing it. Maybe some of you can help me out with this.
There are only two frameworks I use in my web app - Hibernate and
Tapestry. Problem is that after a few requests (20-30 requests) tomcat
gets more and more cpu time to actually preform request. It is clearly
visible in my log files when messages are being written slower and
slower. In the end even simple initialization of Class takes ages to
finally stop responding.
I didn't figure out what's causing this problem yet . I close my
sessions properly - that I'm sure of - I use thread local pattern. My
webapp work in reloadable mode - i use
-Dorg.apache.tapestry.disable-caching=true
and reloadable in tomcat configuration set to true.
Has anyone got a clue?
Thanks in advance.
--
Pozdrawiam
Lukasz Kucharski
lkucharsNOSPAM@gmail.com
lkucharsNOSPAM@students.depaul.edu
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Tomcat slows down after couple of requests
Posted by Ron Piterman <mp...@vollbio.de>.
It probably has to do with the memory issue - in devlopement time new
classes are generated every time you restart the webapp. Class objects
are not being collected as garbage, also when not in use, resulting in a
huge class-definition.
This is an issue in dev-time, should not differ on production.
Look at the mailing list under "memory", there are some threads about
that...
ציטוט Lukasz Kucharski:
> I have a pretty strange problem with Tomcat and I don't know what's
> causing it. Maybe some of you can help me out with this.
>
>
> There are only two frameworks I use in my web app - Hibernate and
> Tapestry. Problem is that after a few requests (20-30 requests) tomcat
> gets more and more cpu time to actually preform request. It is clearly
> visible in my log files when messages are being written slower and
> slower. In the end even simple initialization of Class takes ages to
> finally stop responding.
>
> I didn't figure out what's causing this problem yet . I close my
> sessions properly - that I'm sure of - I use thread local pattern. My
> webapp work in reloadable mode - i use
> -Dorg.apache.tapestry.disable-caching=true
> and reloadable in tomcat configuration set to true.
>
> Has anyone got a clue?
>
> Thanks in advance.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Tomcat slows down after couple of requests
Posted by Kent Tong <ke...@cpttm.org.mo>.
Lukasz Kucharski <lkuchars <at> gmail.com> writes:
> There are only two frameworks I use in my web app - Hibernate and
> Tapestry. Problem is that after a few requests (20-30 requests) tomcat
> gets more and more cpu time to actually preform request. It is clearly
> visible in my log files when messages are being written slower and
> slower. In the end even simple initialization of Class takes ages to
> finally stop responding.
I'd direct all the requests to the same page to see if this happens.
If yes, then disable part of the functionality (eg, some components)
of that page bit by bit and see if it improves the situation. This
way you should be able to isolate the problem.
Another approch is to run a profiler to get some hints on what's wrong.
For example, you may try http://profiler.cougaar.org/
--
Author of an e-Book for learning Tapestry (http://www.agileskills2.org/EWDT)
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org