httpd.conf 如下。
ServerAdmin abc@aa.com[/email]
ProxyPass / ajp://localhost:8009/
ProxyPassReverse / ajp://localhost:8009/
ServerName localhost
CustomLog "|/usr/local/sbin/cronolog /usr/local/apache2/logs/access.%Y%m%d.log" combined
ErrorLog "|/usr/local/sbin/cronolog /usr/local/apache2/logs/err.%Y%m%d.log"
</VirtualHost>
server.xml 如下:
maxThreads="1500"
minSpareThreads="100"
maxSpareThreads="500"
acceptCount="200"
connectionTimeout="60000"
enableLookups="false"
redirectPort="8443"
protocol="AJP/1.3"
URIEncoding="UTF-8" />
现在出现的问题是,每个隔一段时间网站里面的2级连接就打不开。
主页是能打开的。(只是一个index.html页面)
查看apache 日志 发现出现如下报错。 12号出现过一次这种情况,重启apahce tomcat 后恢复了。今天又出现了。
我在网上查看说可以retry=60参数来解决,不知道有效果没哟。请遇到过的朋友讲解一下,谢谢。如下:
ServerAdmin abc@aa.com[/email]
ProxyPass / ajp://localhost:8009/ retry=60
ProxyPassReverse / ajp://localhost:8009/
ServerName localhost
CustomLog "|/usr/local/sbin/cronolog /usr/local/apache2/logs/access.%Y%m%d.log" combined
ErrorLog "|/usr/local/sbin/cronolog /usr/local/apache2/logs/err.%Y%m%d.log"
</VirtualHost>
[Tue Jul 12 14:13:09 2011] [error] (70007)The timeout specified has expired: ajp_ilink_receive() can't receive header
[Tue Jul 12 14:13:11 2011] [error] (70007)The timeout specified has expired: ajp_ilink_receive() can't receive header
[Tue Jul 12 14:13:11 2011] [error] (70007)The timeout specified has expired: ajp_ilink_receive() can't receive header
[Tue Jul 12 14:13:12 2011] [error] (70007)The timeout specified has expired: ajp_ilink_receive() can't receive header
[Tue Jul 12 14:13:17 2011] [error] (70007)The timeout specified has expired: ajp_ilink_receive() can't receive header
[Tue Jul 12 14:13:31 2011] [notice] caught SIGTERM, shutting down
[Tue Jul 12 14:14:15 2011] [notice] Apache/2.2.6 (Unix) configured -- resuming normal operations
[Fri Jul 22 01:15:02 2011] [error] ajp_msg_append_cvt_string(): BufferOverflowException 4 8060
[Fri Jul 22 01:15:07 2011] [error] ajp_msg_append_cvt_string(): BufferOverflowException 4 422
[Fri Jul 22 01:15:56 2011] [error] ajp_msg_append_cvt_string(): BufferOverflowException 4 425
[Fri Jul 22 01:15:59 2011] [error] ajp_msg_append_cvt_string(): BufferOverflowException 4 453
[Fri Jul 22 01:16:04 2011] [error] ajp_msg_append_cvt_string(): BufferOverflowException 4 8189
[Fri Jul 22 01:16:08 2011] [error] ajp_msg_append_cvt_string(): BufferOverflowException 4 425
[Fri Jul 22 01:16:36 2011] [error] ajp_msg_append_cvt_string(): BufferOverflowException 4 425
[Fri Jul 22 01:17:20 2011] [error] ajp_msg_append_cvt_string(): BufferOverflowException 4 425
[Fri Jul 22 01:19:18 2011] [error] ajp_msg_append_cvt_string(): BufferOverflowException 4 8180
[Fri Jul 22 01:19:25 2011] [error] ajp_m