+ -
当前位置:首页 → 问答吧 → 在搭建tomcat集群测试环境时的问题

在搭建tomcat集群测试环境时的问题

时间:2010-09-07

来源:互联网

apache服务器报错:
[Tue Sep 07 15:58:14 2010] [notice] Child 2152: Child process is running
[Tue Sep 07 15:58:14 2010] [notice] Child 2152: Acquired the start mutex.
[Tue Sep 07 15:58:14 2010] [notice] Child 2152: Starting 64 worker threads.
[Tue Sep 07 15:58:14 2010] [notice] Child 2152: Starting thread to listen on port 80.
[Tue Sep 07 15:58:38 2010] [error] (70014)End of file found: ajp_ilink_receive() can't receive header
[Tue Sep 07 15:58:59 2010] [error] (70014)End of file found: ajp_ilink_receive() can't receive header

我都是在本机上测试的。两个tomcat。

conf\extra\httpd-vhosts.conf文件添加如下配置:
<VirtualHost *:80> 
  ServerAdmin localhost
  ServerName localhost
  ServerAlias localhost 
  ProxyPass / balancer://cluster/ stickysession=jsessionid nofailover=On 
  ProxyPassReverse / balancer://cluster/ 
  ErrorLog "logs/lbtest-error.log"
  CustomLog "logs/lbtest-access.log" common
</VirtualHost>

httped.conf文件添加如下信息:
ProxyRequests Off 
  <proxy balancer://cluster> 
  BalancerMember ajp://127.0.0.1:8080 loadfactor=1 route=jvm1
  BalancerMember ajp://127.0.0.1:9090 loadfactor=1 route=jvm2
  </proxy>

tomcat两个都开启了,apache开了后,在IE中输入localhost还是503。tomcat也没报错,我看一下apache的error.log,就是像最上面的一样,请有过经验的人帮忙看看啊。

作者: hb308102796   发布时间: 2010-09-07

自己顶下先,,,

作者: hb308102796   发布时间: 2010-09-07