Hi, we recently encountered a similar situation, and in researching default 
timeouts, I discovered the default timeout for AJP sessions is 300 seconds. Not 
knowing exactly *why* our sessions need to last a bit longer, I decided to try 
a really big number in that timeout:

# let's let proxy connections live a whole 24 hours (i.e. 86400 seconds) the 
default is 300 seconds
ProxyTimeout 86400

So far, I haven't heard any more complaints about 503 errors.

Now, you may not be comfortable using such a large number for your timeout. I'd 
urge caution setting this number. If anyone has a suggestion for a 
better/more-reasonable number for the AJP timeout, I'd love to hear it.

Thanks!

--Hardy

________________________________
From: [email protected] [[email protected]] on behalf of 
Tyler Danstrom [[email protected]]
Sent: Tuesday, September 22, 2015 9:38 AM
To: DSpace Technical Support
Cc: [email protected]; [email protected]
Subject: Re: [dspace-tech] issue with running tomcat behind apache where apache 
throws periodic 503 errors

Hi,

So, after more investigation we've figured out that the problem is with the ajp 
ilink

The following appears in our logs


[Wed Sep 16 14:51:35 2015] [error] (70007)The timeout specified has expired: 
ajp_ilink_receive() can't receive header

[Wed Sep 16 14:51:35 2015] [error] ajp_read_header: ajp_ilink_receive failed

[Wed Sep 16 14:51:35 2015] [error] (70007)The timeout specified has expired: 
proxy: read response failed from (null) (localhost)


Does anyone know what DSpace recommends to set on timeout with an AJP link?


On Thursday, September 17, 2015 at 11:00:00 AM UTC-5, helix84 wrote:
Never experienced this problem. 503 only ever correctly appears only when 
tomcat is down. Here's my configuration:

Apache 2.2, 2.4:

        ProxyPass / ajp://localhost:8009/ retry=2
        ProxyPassReverse / ajp://localhost:8009/

Tomcat 7, 8:
    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" 
URIEncoding="UTF-8" />

I probably wouldn't set retry to 0. Try to turn on the keepalive parameter:
http://httpd.apache.org/docs/2.4/mod/mod_proxy.html#proxypass


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


--
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To post to this group, send email to 
[email protected]<mailto:[email protected]>.
Visit this group at http://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to