also the debug flag is obsolete, instead enable debug level using log4j or
the other logger

Filip

-----Original Message-----
From: Dale, Matt [mailto:[EMAIL PROTECTED]
Sent: Friday, July 16, 2004 3:26 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: cluster didn't replicat sessions



Hi,

Have you set the distributable tag in your context's web.xml?

If so, please post the catalina.out of both so that I can see that the
tomcats have joined the cluster.

If not put <distributable/> inside your webapp tags in the web.xml

Ta
Matt

-----Original Message-----
From: Roland Mieslinger [mailto:[EMAIL PROTECTED]
Sent: 16 July 2004 20:30
To: [EMAIL PROTECTED]
Subject: cluster didn't replicat sessions


Hi,

we are running tomcat 5.0.27 on two servers ( Solaris 8, JDK 1.4.2_02 ),
with apache and AJP connector in a cluster configuration. Loadbalancing
is done by an external HW device.

My problem is, that sessions are not replicated between the nodes.

This is my cluster config ( most taken from sample )

<Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
name="XYZ"
         managerClassName="org.apache.catalina.cluster.session.DeltaManager"
         expireSessionsOnShutdown="false" useDirtyFlag="true" debug="9">

  <Membership className="org.apache.catalina.cluster.mcast.McastService"
              mcastAddr="239.255.255.1" mcastPort="45564"
mcastFrequency="500"
              mcastDropTime="3000"/>

  <Receiver className="org.apache.catalina.cluster.tcp.ReplicationListener"
            tcpListenAddress="x.y.z.170" tcpListenPort="4001"
            tcpSelectorTimeout="100" tcpThreadCount="6" debug="9"/>

  <Sender className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"

          replicationMode="pooled" debug="9"/>

  <Valve className="org.apache.catalina.cluster.tcp.ReplicationValve"
         filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;"/>

</Cluster>
(tcpListenAddress is x.y.z.171 on the other node)

Both nodes are sending multicast packets to 239.255.255.1 ( verfied with
snoop ).
This packets contains the correct values for replication socket of the
sending
host (e. g. tcp://x.y.z.171:4001). Telnet connections to port 4001 are
accepted
on both nodes.

There is not connection between both nodes on port 4001 ( Should I expect
one? ).
I've set debug="9" ( what is the highest possible value? ) but didn't see
errors
in neither catalina.out nor server.log.

The application works well if all requests are directed to the same node.

Any ideas how to troubleshoot this problem are welcome.

Is it correct that setting useDirtyFlag="false" forces replication in any
case after the request has been processed?

Thanx for your help.

Roland Mieslinger
Systemadministrator UNIX



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.721 / Virus Database: 477 - Release Date: 7/16/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.721 / Virus Database: 477 - Release Date: 7/16/2004


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to