<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Tomcat clustering configuration</title>
	<atom:link href="http://www.bserban.org/2009/06/tomcat-clustering-configuration/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bserban.org/2009/06/tomcat-clustering-configuration/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tomcat-clustering-configuration</link>
	<description>Web, Java, J2EE, SaaS, Tips&#38;Tricks</description>
	<lastBuildDate>Thu, 28 Apr 2011 09:51:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Sreejith P</title>
		<link>http://www.bserban.org/2009/06/tomcat-clustering-configuration/comment-page-1/#comment-566</link>
		<dc:creator>Sreejith P</dc:creator>
		<pubDate>Tue, 21 Dec 2010 07:28:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.bserban.org/?p=180#comment-566</guid>
		<description>Hi ,

I am using apache+mod_jk as loadbalancer and two different tomcats are running on two diffrent systems. The loadbalance is working fiine but have issue related to the session relication. The session is not maintained. Please find the server.xml details given below :

IP of the tomcat running instances are 192.168.1.123 and 192.168.1.43 and the version of the tomcat used is tomcat-6.0.26

=============================================
 

  

            
            

            
              
            
            
            
            
          

                



          

          

          
        

==============================================

And my workers.properties file is given below :

worker.list=tomcat
  worker.worker1.domain=jvm1
  worker.worker1.port=8009
  worker.worker1.host=192.168.1.43
  worker.worker1.type=ajp13
  worker.worker1.lbfactor=1
  worker.worker1.socket_keepalive=1

  worker.worker2.domain=jvm2
  worker.worker2.port=8009
  worker.worker2.host=192.168.1.123
  worker.worker2.type=ajp13
  worker.worker2.lbfactor=1
  worker.worker2.socket_keepalive=1

worker.tomcat.type=lb

worker.tomcat.sticky_session = 1

worker.tomcat.balance_workers = worker1, worker2

worker.tomcat.method=B

==================================================

I have added the


in the conf/Catalina/localhost/ROOT.xml

and

in the file webapps/ROOT/WEB-INF/web.xml

==================================================
Please guid me to set session replication set up.</description>
		<content:encoded><![CDATA[<p>Hi ,</p>
<p>I am using apache+mod_jk as loadbalancer and two different tomcats are running on two diffrent systems. The loadbalance is working fiine but have issue related to the session relication. The session is not maintained. Please find the server.xml details given below :</p>
<p>IP of the tomcat running instances are 192.168.1.123 and 192.168.1.43 and the version of the tomcat used is tomcat-6.0.26</p>
<p>=============================================</p>
<p>==============================================</p>
<p>And my workers.properties file is given below :</p>
<p>worker.list=tomcat<br />
  worker.worker1.domain=jvm1<br />
  worker.worker1.port=8009<br />
  worker.worker1.host=192.168.1.43<br />
  worker.worker1.type=ajp13<br />
  worker.worker1.lbfactor=1<br />
  worker.worker1.socket_keepalive=1</p>
<p>  worker.worker2.domain=jvm2<br />
  worker.worker2.port=8009<br />
  worker.worker2.host=192.168.1.123<br />
  worker.worker2.type=ajp13<br />
  worker.worker2.lbfactor=1<br />
  worker.worker2.socket_keepalive=1</p>
<p>worker.tomcat.type=lb</p>
<p>worker.tomcat.sticky_session = 1</p>
<p>worker.tomcat.balance_workers = worker1, worker2</p>
<p>worker.tomcat.method=B</p>
<p>==================================================</p>
<p>I have added the</p>
<p>in the conf/Catalina/localhost/ROOT.xml</p>
<p>and</p>
<p>in the file webapps/ROOT/WEB-INF/web.xml</p>
<p>==================================================<br />
Please guid me to set session replication set up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahul</title>
		<link>http://www.bserban.org/2009/06/tomcat-clustering-configuration/comment-page-1/#comment-559</link>
		<dc:creator>Rahul</dc:creator>
		<pubDate>Wed, 04 Aug 2010 15:59:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.bserban.org/?p=180#comment-559</guid>
		<description>I tried your example but with the following Setup: Windows 7 Apache 2.2 Tomcat 5.5 mod_jk-1.2.30-httpd-2.2.3

After performing the appropriate installs, I can get to the Apache default page, and I can access the Tomcat on localhost as well. But when I try to access jsp-examples via Apache, I&#039;m getting the following error 503:

&quot;Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

I checked apache and tomcat logs, but they do not report any exceptions there, would appreciate if anyone can point how can I find what is the problem.

I have different ports, checked the jvmRoute names and all, but I am not able to locate the problem.

any help would be appreciated.</description>
		<content:encoded><![CDATA[<p>I tried your example but with the following Setup: Windows 7 Apache 2.2 Tomcat 5.5 mod_jk-1.2.30-httpd-2.2.3</p>
<p>After performing the appropriate installs, I can get to the Apache default page, and I can access the Tomcat on localhost as well. But when I try to access jsp-examples via Apache, I&#8217;m getting the following error 503:</p>
<p>&#8220;Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.</p>
<p>I checked apache and tomcat logs, but they do not report any exceptions there, would appreciate if anyone can point how can I find what is the problem.</p>
<p>I have different ports, checked the jvmRoute names and all, but I am not able to locate the problem.</p>
<p>any help would be appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rakesh</title>
		<link>http://www.bserban.org/2009/06/tomcat-clustering-configuration/comment-page-1/#comment-528</link>
		<dc:creator>Rakesh</dc:creator>
		<pubDate>Thu, 24 Jun 2010 12:19:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.bserban.org/?p=180#comment-528</guid>
		<description>Let me try thanks for the article ;-)</description>
		<content:encoded><![CDATA[<p>Let me try thanks for the article <img src='http://www.bserban.org/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bserban</title>
		<link>http://www.bserban.org/2009/06/tomcat-clustering-configuration/comment-page-1/#comment-247</link>
		<dc:creator>bserban</dc:creator>
		<pubDate>Mon, 06 Jul 2009 13:51:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.bserban.org/?p=180#comment-247</guid>
		<description>Well, nice to hear you again after so many years. I hope that my post helped you somehow. 

beer?

Bogdan</description>
		<content:encoded><![CDATA[<p>Well, nice to hear you again after so many years. I hope that my post helped you somehow. </p>
<p>beer?</p>
<p>Bogdan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: len</title>
		<link>http://www.bserban.org/2009/06/tomcat-clustering-configuration/comment-page-1/#comment-243</link>
		<dc:creator>len</dc:creator>
		<pubDate>Mon, 29 Jun 2009 11:09:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.bserban.org/?p=180#comment-243</guid>
		<description>I was searching for jboss, clustering and multicast and run into your post. Nice! Funny! The internet is not so large after all :)</description>
		<content:encoded><![CDATA[<p>I was searching for jboss, clustering and multicast and run into your post. Nice! Funny! The internet is not so large after all <img src='http://www.bserban.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

