tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mauricio Nuñez <mauri...@chile.com>
Subject Cluster threads
Date Thu, 28 Jul 2005 20:43:55 GMT
Hello!

I'm using 2 balanced tomcat , and , monitoring via JMX, I get the
following:

Tomcat1 : 4229 started thread, peak 123, live 118
Tomcat2 : 258 started thread, peak 89,line  86

Tomcat1 is my first tomcat started. 
Tomcat2 get the sessions from Tomcat1.

The uptime is about 5 hours.

The started thread at Tomcat1 is linearly incrementaly. It's a normal
behavior?


The configuration used in both Tomcats is the following:

	<Host name="localhost" appBase="webapps" >
        <Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
                 managerClassName="org.apache.catalina.cluster.session.DeltaManager"
                 expireSessionsOnShutdown="false"
                 useDirtyFlag="false"
                 notifyListenersOnReplication="true">

            <Membership
                className="org.apache.catalina.cluster.mcast.McastService"
                mcastAddr="228.0.0.4"
                mcastPort="45564"
                mcastFrequency="1000"
                mcastDropTime="30000" />

            <Receiver
                className="org.apache.catalina.cluster.tcp.ReplicationListener"
                tcpListenAddress="10.0.0.88"
                tcpListenPort="4001"
                tcpSelectorTimeout="100"
                tcpThreadCount="6" />

            <Sender
                className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
                replicationMode="pooled"
                autoConnect="true"
                waitForAck="true"
                sendAllSessions="false"
                sendAllSessionsSize="100"
                compress="true"
                ackTimeout="15000"/>

            <Valve className="org.apache.catalina.cluster.tcp.ReplicationValve"
                   filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;"/>
            <!--Deployer className="org.apache.catalina.cluster.deploy.FarmWarDeployer"
                      tempDir="/tmp/war-temp/"
                      deployDir="/tmp/war-deploy/"
                      watchDir="/tmp/war-listen/"
                      watchEnabled="false"/ -->
        </Cluster>
</Host>


Thanks

Mauricio Nuñez 



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message