Hi All. I decided to use mod_jk instead of mod_proxy_ajp. Then the error was never happened. I might ask some questions about mod_proxy_ajp's default setting later. Thanks in advance. Regards, (2010/11/02 18:13), Yu Kikuchi wrote:
Thank you for your advice. This is the part of config file. I'm creating some virtual hosts and they are much the same configurations. ---------------------------------------- Listen 8010 NameVirtualHost xxx.xxx.19.40:8010 ServerName xxx.xxx.19.40:8008 : <VirtualHost xxx.xxx.19.40:8010> CustomLog "/opt/httpd/logs/access_8010_log" common ErrorLog "/opt/httpd/logs/error_8010_log" <Location /api> ProxyPass ajp://xxx.xxx.19.40:8009/api </Location> </VirtualHost> : Timeout 300 KeepAlive off KeepAliveTimeout 15 MaxKeepAliveRequests 100 ---------------------------------------- Are there any the suspicious configuration? (2010/10/31 4:13), Igor GaliÄ wrote:----- "Yu Kikuchi"<kikuchi.yu@xxxxxxxxxxxxxx> wrote:Hi All. The error_log (debug) is attached.Hi, I think you really need to post your config. Your errorlog suggests that you're doing something entirely wrong.I understood "(120006) error" means Apache wasn't able to receive the headers of the response from the backend server. But I don't know why the headers didn't return and I want any opinions about the reason. Please teach me how to know the problem. Best regards, (2010/10/12 11:07), Kikuchi Yu wrote:Thanks for getting back to me. > Could it be a timeout while waiting for the reply? Add "%D" toyour LogFormat and check, how long those requests take.The following is an Apache's access_log when the HTTP 503 erroroccured.It seems the request took only "42ms" so I think it's not because ofa timeout.xxx.xxx.xxx.xxx - - [09/Aug/2010:03:38:32 +0900] "GET /api/alive.jspHTTP/1.1" 503 2366 0 42324> I didn't understand the "the errors disappeared instead ofcping/cpong retry occurrence" part of your question.I'm sorry I'm not good at using English well. It's my understanding that: 1. "ping" option gets Apache to check the connection to thebackend.2. If the first CPing/CPong check doesn't succeed, it willreestablish a new connection to the backend and run one moreCPing/CPong. When I set "ping=1" option to ProxyPass directive, Apache failed thefirst CPing/CPong check, but succeeded atconnecting to backend by the second CPing/CPong. So HTTP 500/503 error didn't occur. I wonder if the connection will break instantaneously(within 1second).Would you give me any comments about this phenomenon? (2010/10/08 20:19), Rainer Jung wrote: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 erroroccured.I had changed the setting to use "mod_proxy_http" the day beforeyesterday,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 andreturned HTTP 500/503 error infrequently.[error] (104)Connection reset by peer: ajp_ilink_receive() can'treceive 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 thesame server.I suspected mod_proxy_ajp caused the errors because JBoss hasn'tlogged any messages and left indications of abort.After the setting of "ping" options, the errors disappearedinstead of cping/cpong retry occurrence. Exactly:--------------------------------------------------- <Location /test> ProxyPass ajp://xxx.xxx.xxx.xxx:8009/test ping=1 </Location> --------------------------------------------------- I examine prior occurrences, but nobody told about the cause ofthis phenomenon.Does anybody tell me why the errors came up?Could it be a timeout while waiting for the reply? Add "%D" to yourLogFormat and check, how long those requests take.I didn't understand the "the errors disappeared instead ofcping/cpong retry occurrence" part of your question.Regards, Rainer---------------------------------------------------------------------The official User-To-User support forum of the Apache HTTP ServerProject.See<URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See<URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx