You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by shankar <la...@svw.com> on 2000/12/08 09:00:45 UTC
Slow execution time using struts
Hi,
We are developing an app using struts and find the execution time is
agonizingly slow. We are using Struts 0.5 and tomcat 3.2. M/cs are 64 mb.
The initialization seems to take forever(sometimes more than 1-2 minutes)
and is highly frustrating. One of my co-developers was using an older ver of
Tomcat and the app seemed to be much much faster on his m/c. He recently
shifted to tomcat 3.2 and that brought down his execution speeds and has
been cursing everyone who forced him to do the shift eversince.
Is this a Tomcat prob or is it struts in general? Anybody have the same
prob? Would shifting to Resin bring about any drastic improvement? Does
tomcat have any features that give an edge over Resin or vice-versa? Is
there any other good combination out there? Any sugg/help would be highly
appreciated.
Thanks everybody,
Shankar.
Re: Slow execution time using struts
Posted by Andrew Cockburn <ac...@aqualog.co.uk>.
Makes sense .. plus my dev machine is badly lacking in horsepower so I guess
it shows up a lot worse. Thanks for clearing that up Craig.
Andrew
----- Original Message -----
From: "Craig R. McClanahan" <Cr...@eng.sun.com>
To: <st...@jakarta.apache.org>
Sent: Friday, December 08, 2000 5:46 PM
Subject: Re: Slow execution time using struts
> Andrew Cockburn wrote:
>
> > I recently upgraded to tomcat 3.2 and now my first hit to a JSP after a
> > restart seems to take about a minute to come back, and then it is about
the
> > same as it was. I am not using struts (yet).
> >
>
> Your very first request that initiates a session is going to take several
> seconds no matter what kind of a request it is (servlet, JSP, static file)
> because a new, secure, random number generator is being used to create
session
> ids in Tomcat 3.2 (same in 4.0). After that, all of my experience has
been that
> page compile times are about the same, but that performance of
already-compiled
> pages is faster. Of course, that's only significant if Tomcat's overhead
was a
> large part of the total response time.
>
>
> > Andrew
> >
>
> Craig McClanahan
>
>
>
Re: Slow execution time using struts
Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
Andrew Cockburn wrote:
> I recently upgraded to tomcat 3.2 and now my first hit to a JSP after a
> restart seems to take about a minute to come back, and then it is about the
> same as it was. I am not using struts (yet).
>
Your very first request that initiates a session is going to take several
seconds no matter what kind of a request it is (servlet, JSP, static file)
because a new, secure, random number generator is being used to create session
ids in Tomcat 3.2 (same in 4.0). After that, all of my experience has been that
page compile times are about the same, but that performance of already-compiled
pages is faster. Of course, that's only significant if Tomcat's overhead was a
large part of the total response time.
> Andrew
>
Craig McClanahan
Re: Slow execution time using struts
Posted by Andrew Cockburn <ac...@aqualog.co.uk>.
I recently upgraded to tomcat 3.2 and now my first hit to a JSP after a
restart seems to take about a minute to come back, and then it is about the
same as it was. I am not using struts (yet).
Andrew
----- Original Message -----
From: "shankar" <la...@svw.com>
To: <st...@jakarta.apache.org>
Sent: Friday, December 08, 2000 8:00 AM
Subject: Slow execution time using struts
> Hi,
> We are developing an app using struts and find the execution time is
> agonizingly slow. We are using Struts 0.5 and tomcat 3.2. M/cs are 64 mb.
> The initialization seems to take forever(sometimes more than 1-2 minutes)
> and is highly frustrating. One of my co-developers was using an older ver
of
> Tomcat and the app seemed to be much much faster on his m/c. He recently
> shifted to tomcat 3.2 and that brought down his execution speeds and has
> been cursing everyone who forced him to do the shift eversince.
> Is this a Tomcat prob or is it struts in general? Anybody have the
same
> prob? Would shifting to Resin bring about any drastic improvement? Does
> tomcat have any features that give an edge over Resin or vice-versa? Is
> there any other good combination out there? Any sugg/help would be highly
> appreciated.
>
> Thanks everybody,
> Shankar.
>
>
>