I just noticed something strange.  It isn't exactly that the HTML is
cut off.  All of the parts match the output on my dev server.  But it
looks like the HTML has been chunked up and mixed up, for lack of a
better way to describe it.  For example one of the pages has two head
tags, but is missing some of the other chunks.

Here's an example line from the dev server:

<tr class="standardTable_Row1" onmouseout="restorColors(this,8)"
onmouseover="changeColors(this)"><td
class="standardTable_ColumnRight">Snapnames
            </td><td class="standardTable_ColumnRight">223</td><td
class="standardTable_ColumnRight">1.79%</td><td
class="standardTable_ColumnRight">4</td><td
class="standardTable_ColumnRight">50.00%</td><td
class="standardTable_ColumnRight">2</td><td
class="standardTable_ColumnRight">$1.00</td><td
class="standardTable_ColumnRight">$2.00</td><td
class="standardTable_ColumnRight">$4.00</td><td
class="standardTable_ColumnRight">2</td></tr>

And here is the same line from production server:

<tr class="standardTable_Row1" onmouseout="restorColors(this,8)"
onmouseover="changeColors(this)"><td
class="standardTable_ColumnRight">Snapnames
            </td><td class="standardTable_ColumnRight">223</td><td
class="standardTable_ColumnRight">1.79%</td><td
class="standardTable_ColumnRight">4</td><td
class="standardTable_ColumnRight">50.00%</td><td
class="standardTable_ColumnRight">2</td><td
class="standardTable_ColumnRight">$1.00</td><td
class="standardTable_ColumnRight">$2.00</td><td
class="standardTable_ColumnRight">$4.00</td><td
class="standardTable_ColumnRight">2</tlumns:</span></td></tr>

That is the first place where the html deviates.  After that follows
another chunk of html that should appear further down the page.  I'm
baffled.  Anyone know what could be causing it?

The problem seems to appear only on longer pages.  I haven't gotten
the 503 error lately, the TimeOut and KeepAliveTimeout directives
might have fixed it.

jessica

On 5/29/07, Jessica Johnson <[EMAIL PROTECTED]> wrote:



On 5/29/07, Rainer Jung <[EMAIL PROTECTED]> wrote:




> Although I don't know your actual configs, I assume your problem happens
> when requests take longer than 300 seconds, which is the default request
> timeout with Apache. You can increase this with Apache Timeout
> directive. You can measure response times by adding "%D" to your
>  LogFormat (microseconds response time).


I added
TimeOut 1200
KeepAliveTimeout 30

To the end of httpd.conf which didn't fix the original 503 problem.  I also 
noticed that sometimes I don't get the error at all, but the html response is 
incomplete.  I will experiment some with %D and see if I can learn more about 
the problem.  In the meantime, I would appreciate any ideas you all might have.

Thanks,

jessica



> Regards,
>
> Rainer
>
> Jessica Johnson wrote:
> > Hi all,
> >
> > I finally got a mostly working install of Apache 2.2.4, Tomcat 5.5.23,
> > and the mod_jk 1.2.22.  In the general case it works fine, but for
> > pages that take a long time to load, I get the first part of the html,
> > and then Apache spits out "OK The server is temporarily unable to
> > service your request due to maintenance downtime or capacity problems.
> > Please try again later."  It's a reporting system that needs to do
> > some intensive DB queries and calculations before rendering.
> >
> > Is there some way I can increase the time Apache waits before giving
> > the 503 error? Or better yet, what are some strategies for optimizing
> > my configuration?  I'm a newbie with this type of setup, so I may be
> > missing something entirely obvious.
> >
> > There was nothing strange in any of the logs, except this snip from
> > access.log  showing the 503:
> > 196.40.54.218 - - [29/May/2007:10:30:04 -0500] "GET
> > /reporting/data_reports.jsf?reportStyle=3 HTTP/1.1" 200 90024
> >  196.40.54.218 - - [29/May/2007:10:31:17 -0500] "GET
> > /reporting/data_reports.jsf?reportStyle=4 HTTP/1.1" 503 90289
> >
> > Here is my workers.properties file.
> >
> > [logger]
> > level=DEBUG
> > file=C:/Program Files/Apache Software Foundation/Apache2.2/logs/jk2.log
> > [config]
> > file=C:/Program Files/Apache Software
> > Foundation/Apache2.2/conf/workers2.properties
> > debug=0
> > debugEnv=0
> >
> >
> > [shm]
> > file=C:/Program Files/Apache Software Foundation/Apache2.2/logs/jk2.shm
> > size=1048576
> >
> > # socket channel
> > [channel.socket:localhost:8009]
> > port=8009
> > host=127.0.0.1
> >
> > # worker for the connector
> > [ajp13:localhost:8009]
> > channel=channel.socket:localhost:8009
> >
> > [status:status]
> >
> > [uri:/status/*]
> > worker=status:status
> >
> > [uri:/jsp-examples/*.jsp]
> > worker=ajp13:localhost:8009
> >
> > [uri:/reporting/*.jsp]
> > worker=ajp13:localhost:8009
> >
> > [uri:/*.jsp]
> > worker=ajp13:localhost:8009
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail:  [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to