`

apache2.2+tomcat超时503

    博客分类:
  • JAVA
 
阅读更多

 

最近apache2.2+tomcat5.5.28(两个)的系统,客户反映说访问时报告了 503 错误,需要不断的刷新。

apache2.2使用的是mod_proxy_ajp与tomcat5连接。

 

 

apache错误日志:

 

[Fri Mar 23 15:36:57 2012] [error] proxy: dialog to **.***.*.**:8109 (**.***.*.**) failed
[Fri Mar 23 15:37:54 2012] [error] proxy: BALANCER: (balancer://cluster). All workers are in error state for route (jvm82)
[Fri Mar 23 15:37:56 2012] [error] proxy: BALANCER: (balancer://cluster). All workers are in error state for route (jvm82)
[Fri Mar 23 15:37:58 2012] [error] proxy: BALANCER: (balancer://cluster). All workers are in error state for route (jvm82)
[Fri Mar 23 15:38:00 2012] [error] proxy: BALANCER: (balancer://cluster). All workers are in error state for route (jvm82)
[Fri Mar 23 15:38:02 2012] [error] proxy: BALANCER: (balancer://cluster). All workers are in error state for route (jvm82)
[Fri Mar 23 15:38:02 2012] [error] proxy: BALANCER: (balancer://cluster). All workers are in error state for route (jvm82)
[Fri Mar 23 15:38:02 2012] [error] proxy: BALANCER: (balancer://cluster). All workers are in error state for route (jvm82)
[Fri Mar 23 15:38:05 2012] [error] proxy: BALANCER: (balancer://cluster). All workers are in error state for route (jvm82)
[Fri Mar 23 15:38:07 2012] [error] proxy: BALANCER: (balancer://cluster). All workers are in error state for route (jvm82)
[Fri Mar 23 15:38:12 2012] [error] proxy: BALANCER: (balancer://cluster). All workers are in error state for route (jvm82)
[Fri Mar 23 15:38:16 2012] [error] proxy: BALANCER: (balancer://cluster). All workers are in error state for route (jvm82)
[Fri Mar 23 15:38:18 2012] [error] proxy: BALANCER: (balancer://cluster). All workers are in error state for route (jvm82)
[Fri Mar 23 15:38:19 2012] [error] proxy: BALANCER: (balancer://cluster). All workers are in error state for route (jvm82)
[Fri Mar 23 15:38:20 2012] [error] proxy: BALANCER: (balancer://cluster). All workers are in error state for route (jvm82)
[Fri Mar 23 15:38:23 2012] [error] proxy: BALANCER: (balancer://cluster). All workers are in error state for route (jvm82)
[Fri Mar 23 15:38:23 2012] [error] proxy: BALANCER: (balancer://cluster). All workers are in error state for route (jvm82)
[Fri Mar 23 15:38:25 2012] [error] proxy: BALANCER: (balancer://cluster). All workers are in error state for route (jvm82)
[Fri Mar 23 15:38:29 2012] [error] proxy: BALANCER: (balancer://cluster). All workers are in error state for route (jvm82)
[Fri Mar 23 15:38:30 2012] [error] proxy: BALANCER: (balancer://cluster). All workers are in error state for route (jvm82)
[Fri Mar 23 15:38:33 2012] [error] proxy: BALANCER: (balancer://cluster). All workers are in error state for route (jvm82)
[Fri Mar 23 15:38:33 2012] [error] proxy: BALANCER: (balancer://cluster). All workers are in error state for route (jvm82)
[Fri Mar 23 15:39:56 2012] [error] (70007)The timeout specified has expired: ajp_ilink_receive() can't receive header
[Fri Mar 23 15:39:56 2012] [error] ajp_read_header: ajp_ilink_receive failed
[Fri Mar 23 15:39:56 2012] [error] (120006)APR does not understand this error code: proxy: read response failed from **.***.*.**:8209 (**.***.*.**)
[Fri Mar 23 15:40:15 2012] [error] proxy: BALANCER: (balancer://cluster). All workers are in error state for route (jvm82)
[Fri Mar 23 15:40:16 2012] [error] proxy: BALANCER: (balancer://cluster). All workers are in error state for route (jvm82)
[Fri Mar 23 15:40:16 2012] [error] proxy: BALANCER: (balancer://cluster). All workers are in error state for route (jvm82)
[Fri Mar 23 15:40:16 2012] [error] proxy: BALANCER: (balancer://cluster). All workers are in error state for route (jvm82)
[Fri Mar 23 15:40:16 2012] [error] proxy: BALANCER: (balancer://cluster). All workers are in error state for route (jvm82)
[Fri Mar 23 15:40:37 2012] [error] proxy: BALANCER: (balancer://cluster). All workers are in error state for route (jvm82)
[Fri Mar 23 15:40:37 2012] [error] proxy: BALANCER: (balancer://cluster). All workers are in error state for route (jvm82)
[Fri Mar 23 15:40:43 2012] [error] proxy: BALANCER: (balancer://cluster). All workers are in error state for route (jvm82)
[Fri Mar 23 15:40:50 2012] [error] proxy: BALANCER: (balancer://cluster). All workers are in error state for route (jvm82)
[Fri Mar 23 15:40:51 2012] [error] proxy: BALANCER: (balancer://cluster). All workers are in error state for route (jvm82)
[Fri Mar 23 15:40:52 2012] [error] proxy: BALANCER: (balancer://cluster). All workers are in error state for route (jvm82)
[Fri Mar 23 15:40:53 2012] [error] proxy: BALANCER: (balancer://cluster). All workers are in error state for route (jvm82)
[Fri Mar 23 

 

 

然后,继续去查看tomcat的日志,发现后台在执行一个时间很长的处理(批量导入数据,处理时间超过5分钟)。

 

apache2.2的默认超时时间是300s(5分钟)。

参考:

 

Apache 2.2 中文版参考手册

 

 

 

ProxyTimeout 指令

说明语法默认值作用域状态模块兼容性
代理请求的网络超时
ProxyTimeout seconds
ProxyTimeout 300
server config, virtual host
扩展(E)
mod_proxy
仅在 Apache 2.0.31 及以后的版本中可用

 

 

-----------------------解决方案,待优化---------------------------------------

 

目前,推断的结果是apache的处理超时了,初步的解决方案是,将timeout设置的长一些。

 

 

 

 

 

 

 

分享到:
评论

相关推荐

    两台服务器上做Apache2.2+Tomcat6.0+mod_jk的负载均衡

    "两台服务器上做Apache2.2+Tomcat6.0+mod_jk的负载均衡"是一个典型的分布式系统架构,旨在通过在多台服务器之间分配工作负载来提高系统的稳定性和性能。下面将详细介绍这个配置涉及的知识点: 1. **Apache ...

    windows apache http 2.2+tomcat6.0.29

    标题中的“Windows Apache HTTP 2.2 + Tomcat 6.0.29”指的是在Windows操作系统上安装和配置Apache HTTP服务器2.2版本与Tomcat应用服务器6.0.29版本的集成。这个组合常见于搭建Java Web应用程序的环境,Apache用于...

    apache2.2+mod_jk

    6. **启动和测试**:启动Apache和Tomcat,然后通过访问配置过的URL来测试Apache2.2是否成功将请求转发到Tomcat。可以使用简单的Servlet或JSP页面来进行测试。 7. **优化和监控**:根据实际需求,可以进一步调整`mod...

    apache2.2与tomcat6.x+mod_jk整合

    在Apache2.2与Tomcat6.x的整合中,mod_jk模块扮演了关键角色,它是Apache的Jakarta项目的一部分,专门用于连接Apache和Tomcat。 1. **mod_jk模块介绍** mod_jk是Apache与Tomcat间通信的桥梁,它实现了Apache的URL...

    Apache2.2和Tomcat7集成负载均衡(软件和教程)

    【Apache2.2和Tomcat7集成负载均衡】 在现代Web应用环境中,为了提供高可用性和性能优化,经常需要将HTTP服务器(如Apache)与应用服务器(如Tomcat)进行集成,并实现负载均衡。Apache2.2和Tomcat7的集成能够充分...

    apache2.4 +tomcat7+mod_jk.so 完美整合实例

    Apache 2.4、Tomcat 7 和 mod_jk.so 的整合是将 Apache 作为前端服务器,用于处理静态内容和反向代理,而 Tomcat 作为后端应用服务器,主要负责处理 Java Servlet 和 JSP。这种架构组合可以充分利用 Apache 的高性能...

    Apache+Tomcat+MySQL 环境搭建

    CustomLog "|'D:/Program Files/Apache Software Foundation/Apache2.2/bin/rotatelogs.exe' 'D:/wap-logs/waptown-access_%Y%m%d.log' 3600 480" waptown ``` - **其他配置**: - 设置PID文件、ScoreBoard文件...

    apache_server+Tomcat7集群负载均衡session共享

    通过上述配置,Apache Server 2.2和Tomcat7集群可以提供高可用和高效的Web服务,同时通过session共享保证了用户会话的连续性,提升了用户体验。提供的LICENSE、NOTICE和README文件通常包含了软件授权信息、版权声明...

    apache2.2 和2.4 mod_jk 1.2.4

    本压缩包包含适用于Apache 2.2和2.4版本的`mod_jk`模块的动态链接库文件,即`mod_jk.so`,这将帮助在Windows环境下配置Apache与Tomcat的集成。 Apache 2.2和2.4是两个主要的Apache服务器版本,每个版本都有其特定的...

    apache 2.X+tomcat 6.X/7.X集群配置

    Tomcat的连接器文件tomcat-connectors-1.2.35-windows-i386-httpd-2.2.x.zip包含了用于Apache和Tomcat通信的mod_jk模块,该模块使得Apache能够将动态请求转发给Tomcat处理。 2. **配置mod_jk模块**:将解压后的...

    nginx+tomcat测试报告.doc

    3.1 单TOMCAT测试:首先对单个Tomcat服务器进行基准测试,使用Apache JMeter模拟大量并发用户请求,记录响应时间和吞吐量。 3.2 Nginx+TOMCAT测试:部署Nginx作为反向代理,配置后端指向单个Tomcat服务器,重复相同...

    apache-tomcat-7.0.62.tar.gz

    Tomcat 7支持Servlet 3.0、JSP 2.2和EL 2.2等技术,这些都是Java EE 6的核心组件。 **安装步骤** 1. **下载与解压**:首先,你需要从Apache官方网站下载“apache-tomcat-7.0.62.tar.gz”文件,然后使用解压工具(如...

    apache-tomcat-7.0.52.zip for mac os

    此外,Tomcat 7还支持Servlet 3.0、JSP 2.2和EL 2.2等标准。 3. **Mac OS兼容性**: "apache-tomcat-7.0.52.zip for mac os"意味着这个版本已经过优化,可以无缝地在Mac操作系统上运行,无需额外的适配或配置。对于...

    APACHE 2.2.4与TOMCAT6.0.14整合教程

    - **Apache安装**:将Apache安装至预设路径C:\Program Files\Apache Software Foundation\Apache2.2 (以下简称dirApache)。 - **Tomcat部署**:将两个Tomcat压缩包解压至自定义目录,分别命名为dirTOMCATA和...

    tomcat+apache整合插件大全及整合方法

    - 将编译好的`mod_jk-1.2.30-httpd-2.2.X.so`动态链接库文件移动到Apache的modules目录下。 4. **配置mod_jk**: - 创建一个名为`workers.properties`的文件,定义worker(即Tomcat实例)的属性,包括IP地址、...

    windows mod_jk.so httpd+tomcat配置模块

    **Windows环境下Apache HTTPD服务器与Tomcat集成使用mod_jk.so模块** Apache HTTPD服务器是广泛应用的开源Web服务器,而Tomcat则是Java Servlet和JavaServer Pages(JSP)的容器。在部署Java应用时,通常会将Apache...

    apache-tomcat6and7

    Apache Tomcat 7则是Tomcat的第七个主要版本,它支持Java Servlet 3.0和JSP 2.2规范。这个版本带来了许多改进,包括对WebSocket的支持,这是一个在浏览器和服务器之间进行全双工通信的新标准。此外,Tomcat 7还引入...

Global site tag (gtag.js) - Google Analytics