apache做了负载均衡报错

祝劲松 发布于 2011/08/31 18:06
阅读 1K+
收藏 0

一直弹警告

apache 2.2.19+tomcat6.0.33+windows server 2008 

用的是mod_proxy方式负载均衡....

2011-8-22 13:59:05 org.apache.catalina.tribes.transport.nio.ParallelNioSender doLoop
警告: Not retrying send for:tcp://{127, 0, 0, 1}:4000; Sender is disconnected.
2011-8-22 13:59:45 org.apache.catalina.tribes.transport.nio.ParallelNioSender doLoop
警告: Not retrying send for:tcp://{127, 0, 0, 1}:4000; Sender is disconnected.
2011-8-22 14:00:25 org.apache.catalina.tribes.transport.nio.ParallelNioSender doLoop
警告: Not retrying send for:tcp://{127, 0, 0, 1}:4000; Sender is disconnected.
2011-8-22 14:00:45 org.apache.catalina.tribes.transport.nio.ParallelNioSender doLoop
警告: Not retrying send for:tcp://{127, 0, 0, 1}:4000; Sender is disconnected.
tomcat配置:
<Engine name="Catalina" defaultHost="localhost" jvmRoute="tomcat2">
	<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster" channelSendOptions="8">
			<Manager className="org.apache.catalina.ha.session.DeltaManager"  
                   expireSessionsOnShutdown="false"  
                   notifyListenersOnReplication="true"/>   
			<Channel className="org.apache.catalina.tribes.group.GroupChannel">
            <Membership className="org.apache.catalina.tribes.membership.McastService"  
                        address="228.0.0.4"
                        port="45564"  
                        frequency="500"  
                        dropTime="3000" /> 
            <Receiver className="org.apache.catalina.tribes.transport.nio.NioReceiver"  
                      address="auto4"  
                      port="4101"  
                      autoBind="100"  
                      selectorTimeout="50000"  
                      maxThreads="800"/>   
            <!-- timeout="60000"-->   
            <Sender className="org.apache.catalina.tribes.transport.ReplicationTransmitter">
				<Transport className="org.apache.catalina.tribes.transport.nio.PooledParallelSender" />   
            </Sender>   
            <Interceptor className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/>   
            <Interceptor className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/>   
			<Interceptor className="org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor"/>   
          </Channel>   
  
          <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"  
                 filter=""/>   
          <Valve className="org.apache.catalina.ha.session.JvmRouteBinderValve"/>  
		  
          <ClusterListener className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>   
          <ClusterListener className="org.apache.catalina.ha.session.ClusterSessionListener"/>   
        </Cluster>
      <!--For clustering, please take a look at documentation at:
          /docs/cluster-howto.html  (simple how to)
          /docs/config/cluster.html (reference documentation) -->
      <!--
      <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
      -->        

      <!-- The request dumper valve dumps useful debugging information about
           the request and response data received and sent by Tomcat.
           Documentation at: /docs/config/valve.html -->
      <!--
      <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
      -->

      <!-- This Realm uses the UserDatabase configured in the global JNDI
           resources under the key "UserDatabase".  Any edits
           that are performed against this UserDatabase are immediately
           available for use by the Realm.  -->
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase"/>

      <!-- Define the default virtual host
           Note: XML Schema validation will not work with Xerces 2.2.
       -->
      <Host name="xxx.com"  appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">
	<Context docBase="/xxx" path="/Shop" crossContext="false" privileged="false" reloadable="false" />
      </Host>
    </Engine>
    
 现在广播地址已经没有端口号是4000的,依然报这个错,困扰很久了...本地配置都没有出错,放到服务器上出错
现在是单机两个tomcat+apache 1.会不会跟服务器机房其它电脑也配置有负载有关系?2.如果session备份只想接收本机广播这么做?
希望能得到解答.非常感谢

以下是问题补充:

@祝劲松:怎么没有人来回答啊...焦虑 (2011/09/01 18:02)
加载中
返回顶部
顶部