Hi Amarish,

A few questions:

How are you connecting to tomcat (typing in port 8080 or the jk2 connector
from Apache?  I looked in my tdk 2.2 server.xml and didn't find the
HttpProcessor directive, and I looked in the tomcat 4 docs and couldn't find
it.  Maybe it's been depracated and there's an alternative?

Some of the xml files refer to DTDs on the internet, which get read on
initialization of the webapp.  Maybe your server is having trouble accessing
them?  Maybe try downloading them locally (or even removing the dtd
statement from the xml). Are there any other external resources that your
webapp references that might have trouble resolving?

Have you thought about upgrading to TDK2.3 or Tomcat5?

Good luck,

David

-----Original Message-----
From: Amarish Khopkar [mailto:[EMAIL PROTECTED] 
Sent: Wednesday May 5, 2004 5:36 AM
To: Turbine Users List
Subject: RE: First page load takes forever


Actually I don't think that it is the redirect, since
the redirect happens always anyway.

It actually appears that the HttpProcessor of Tomcat
is timing out twice before it finally works.  This can
be verified by the fact that:

1.  when the HttpProcessor connectionTimeout property
is set to 60 sec (it's default) it takes exactly 2
minutes (60 sec + 60 sec) for the page to load.

2.  When I edit the server.xml and the HttpProcessor
connectionTimeout property is set to 5 sec (it's
default) it takes exactly 10 sec (5 sec + 5 sec) for
the page to load.

For some reason it's only the first time that the page
is hit from an outside machine that this seems to
occur, and only when all other browser instances to my
app are closed.  Once one browser instance connects to
the app, all subsequent interactions in that and other
browser instances are really quick, and to reproduce
the performance problem, all browser instances have to
be closed.  Almost feels like it's having trouble
making that first connection to tomcat.

Another weird thing is that:
1.  from certain external machines, the problem
doesn't occur and the page loads up really quickly.

Anybody have any suggestions??

Amarish



--- "Chung, Sean Saehoon" <[EMAIL PROTECTED]> wrote:
> Hello Amarish,
> 
> Not sure if the redirect is causing your bottleneck
> but the redirect can be
> explained if you take a look at source code of class
> org.apache.turbine.Turbine ( doGet() method )and
> follow it.
> 
> The way this class works for the first loading is by
> redirecting number of
> times.
> 
> Thanks
> Sean
> 
> -----Original Message-----
> From: Amarish Khopkar
> [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, 5 May 2004 1:52 PM
> To: [EMAIL PROTECTED]
> Subject: First page load takes forever
> 
> 
> Hi guys,
> 
> I was wondering if anybody had run into this.  I'm
> using the tdk2.2.  For some reason, the first time I
> try to hit my home page, it seems to take forever. 
> All subsequent attempts to do anything else in the
> site seem to be rather quick.  
> 
> I have looked into the tomcat localhost_access_log
> file and I see a redirect/true going back to the
> same
> home page a couple of times only on the first
> access.
> 
> If anybody could shed light on this, it would be
> greatly appreciated.
> 
> Amarish
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to