Contact Us
  
 
 
    SearchSearch   RegisterRegister   Log inLog in 

tomcat clustering not running failover

tomcat clustering not running failover

 
Post new topic   Reply to topic     Forum Index -> Tomcat Clustering TroubleShooting
View previous topic :: View next topic  
Author Message
mehra2007



Joined: 13 May 2007
Posts: 4

PostPosted: Sun May 13, 2007 2:57 pm    Post subject: tomcat clustering not running failover Reply with quote

I have a problem of clustering. i have read from and studied from
http://www.onjava.com/pub/a/onjava/2004/04/14/clustering.html
to do tomcat clustering. i have done everything accroding to to this site. This is horizontal tomcat clustering. I made a folder and copied all three tomcat in that. i uncomment from %tomcat%\conf\server.xml

Quote:
<Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
managerClassName="org.apache.catalina.cluster.session.DeltaManager"
expireSessionsOnShutdown="false"
useDirtyFlag="true"
notifyListenersOnReplication="true">

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

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

<Sender
className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
replicationMode="pooled"
ackTimeout="15000"
waitForAck="true"/>

<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"/>

<ClusterListener className="org.apache.catalina.cluster.session.ClusterSessionListener"/>
</Cluster>


this portion and also made a file of jsp of having session id in all tomcats.
my tomcat are also having separate name. I also change the

Quote:
<Connector port="9009"
enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />

in all tomcats.
and also this

Quote:
<Connector port="8081" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />


all three tomcat having different port names AJP connector and ports.

and also i have done to separate the JVM route

Quote:
<Engine name="Standalone" defaultHost="localhost" jvmRoute="jvm1">


After that setting i do shutdown all tomcats and again i start those tomcats. But it is showing it is listeing and live localhost .

If i close one tomcat and refresh my page it is not having same session ID.
I donot having problem of Serializable bean. Because i not using any bean. I am using just a simple jsp file in tomcat webapps folder
Please help
Back to top
View user's profile Send private message
seniormember
Site Admin


Joined: 20 Jul 2008
Posts: 77

PostPosted: Wed Aug 20, 2008 4:13 pm    Post subject: Reply with quote

Most of things you are doing right.

Still can check and match steps of implementation of tomcat clustering.

http://www.easywayserver.com/implementation-tomcat-clustering.htm

and

for linux version

http://www.easywayserver.com/apache-tomcat-integration.html
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Tomcat Clustering TroubleShooting All times are GMT
Page 1 of 1

 
Jump to:  
  Quick Post a Reply Topic
     
  Name (required)  
     
  Email Address (will not be published) (required)  
     
  Subject of topic (required)  
     
   
     
   
     
  Advertisement  
     
 
     


  More Links  
 
JSP Introduction
JSP Setup
Simple JSP Example
JSP Variable
Array Declaration in JSP
JSP Forms and User Input
Form Validation
JSP Cookies
JSP Session Object
Loop, content collection, iterator, conditional check in JSP
JSP Application Object
JSP Include
JSP Response Object
JSP Request Object
JSP Error Handling
JSP File Handling Object
JSP Action Tag
JSP Implicit Objects
JSP Declaration
JSP Directive
JDBC Introduction
JDBC Driver
JDBC Connection
JDBC Prepared/Statement
JDBC ResultSet
JDBC Close Connection object
JDBC Insert
JDBC Display Records
JDBC Update
JDBC Delete
JDBC Sorting
JDBC Query
JDBC Exception
JDBC Add Batch
JDBC Transaction/RollBack