Apache使用mod_proxy方式实现负载均衡后报警告错误


环境:apache 2.2.19+tomcat6.0.33+windows server 2008

报错信息:

   
  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>

apache 负载均衡

看家柴犬桐花花 12 years, 8 months ago

Your Answer