mod_proxy_ajp failed to connect infrequently

mod_proxy_ajp failed to connect infrequently

am 07.10.2010 11:50:24 von kikuchi.yu

Hello.

Apache wrote such as following messages into error_log and returned HTTP 500/503 error infrequently.

[error] (104)Connection reset by peer: ajp_ilink_receive() can't receive header
[error] ajp_read_header: ajp_ilink_receive failed
[error] (120006)APR does not understand this error code: proxy: read response failed from xxx.xxx.xxx.xxx:8009
(xxx.xxx.xxx.xxx)

I have installed Apache and JBoss Application Server into the same server.
I suspected mod_proxy_ajp caused the errors because JBoss hasn't logged any messages and left indications of abort.

After the setting of "ping" options, the errors disappeared instead of cping/cpong retry occurrence. Exactly:

---------------------------------------------------

ProxyPass ajp://xxx.xxx.xxx.xxx:8009/test ping=1

---------------------------------------------------

I examine prior occurrences, but nobody told about the cause of this phenomenon.
Does anybody tell me why the errors came up?

Best regards.


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: mod_proxy_ajp failed to connect infrequently

am 08.10.2010 09:33:38 von kikuchi.yu

My environment is Apache 2.2.11 and JBoss AS 5.0.0.
There were no messages in JBoss's access log when the error occured.

I had changed the setting to use "mod_proxy_http" the day before yesterday,
then not HTTP 503 error but 502 error occured.
Are anybody onto something about this error?

Are there any ideas to pursue the exact cause of it?


(2010/10/07 18:50), Yu Kikuchi wrote:
> Hello.
>
> Apache wrote such as following messages into error_log and returned HTTP 500/503 error infrequently.
>
> [error] (104)Connection reset by peer: ajp_ilink_receive() can't receive header
> [error] ajp_read_header: ajp_ilink_receive failed
> [error] (120006)APR does not understand this error code: proxy: read response failed from xxx.xxx.xxx.xxx:8009
> (xxx.xxx.xxx.xxx)
>
> I have installed Apache and JBoss Application Server into the same server.
> I suspected mod_proxy_ajp caused the errors because JBoss hasn't logged any messages and left indications of abort.
>
> After the setting of "ping" options, the errors disappeared instead of cping/cpong retry occurrence. Exactly:
>
> ---------------------------------------------------
>
> ProxyPass ajp://xxx.xxx.xxx.xxx:8009/test ping=1
>

> ---------------------------------------------------
>
> I examine prior occurrences, but nobody told about the cause of this phenomenon.
> Does anybody tell me why the errors came up?
>
> Best regards.
>
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>



------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: mod_proxy_ajp failed to connect infrequently

am 08.10.2010 13:19:34 von Rainer Jung

On 08.10.2010 09:33, Yu Kikuchi wrote:
> My environment is Apache 2.2.11 and JBoss AS 5.0.0.
> There were no messages in JBoss's access log when the error occured.
>
> I had changed the setting to use "mod_proxy_http" the day before yesterday,
> then not HTTP 503 error but 502 error occured.
> Are anybody onto something about this error?
>
> Are there any ideas to pursue the exact cause of it?
>
>
> (2010/10/07 18:50), Yu Kikuchi wrote:
>> Hello.
>>
>> Apache wrote such as following messages into error_log and returned HTTP 500/503 error infrequently.
>>
>> [error] (104)Connection reset by peer: ajp_ilink_receive() can't receive header
>> [error] ajp_read_header: ajp_ilink_receive failed
>> [error] (120006)APR does not understand this error code: proxy: read response failed from xxx.xxx.xxx.xxx:8009
>> (xxx.xxx.xxx.xxx)
>>
>> I have installed Apache and JBoss Application Server into the same server.
>> I suspected mod_proxy_ajp caused the errors because JBoss hasn't logged any messages and left indications of abort.
>>
>> After the setting of "ping" options, the errors disappeared instead of cping/cpong retry occurrence. Exactly:
>>
>> ---------------------------------------------------
>>
>> ProxyPass ajp://xxx.xxx.xxx.xxx:8009/test ping=1
>>

>> ---------------------------------------------------
>>
>> I examine prior occurrences, but nobody told about the cause of this phenomenon.
>> Does anybody tell me why the errors came up?

Could it be a timeout while waiting for the reply? Add "%D" to your
LogFormat and check, how long those requests take.

I didn't understand the "the errors disappeared instead of cping/cpong
retry occurrence" part of your question.

Regards,

Rainer

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org