You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by WIPRO Anil Gandhi <WI...@dm.gov.ae> on 2003/04/07 08:58:31 UTC
Load Balancing
Hi Fillip,
I am working over tomcat clustering. Used JDK 1.4.0_1, Tomcat 4.1.24. and also downloaded the latest JAR files from the site.
This time I am working over two sun machines.
Here are the steps followed.
1. Downloaded and installed tomcat.
2. Installed JDK
3. placed tomcat-replication.jar under /server/lib (latest one).
4. Copied modified Class file (having Serialization extended) under /opt/tomcat/jakarta-tomcat/webapps/examples/WEB-INF/classes/num/
5. tested multicasting using "java -cp tomcat-replication.jar MCaster 228.1.2.3 45566 MachineSpecificHello", this was happening as expected.
6 Started load balancer using tcploadbalancer.jar on port 81 on nocadm20
7. accessed the url using the netscape brower 4.6.x (sun machine )
8. Story :
my machine names are nocadm20 and nocadm40.
For all reference I am testing number guess program in tomcat examples. I have modified NumberGuess class file. Have extended Serializable interface.
I opened one browser (A) instance and accessed the page, page from nocadm20 opened.
Opened another brower (B) instance and acccesed another page, page from nocadm40 opened.
Now when I type number and submit (original page from nocadm40)), page from nocadm20 loads ( this is abnormal probably load balancer is having bug).
Now the status of Browser A Page from Nocadm20 with counter - 1
Now the status of Browser B Page loaded page from Nocadm20 with counter - 2
When I access Browser A and type number and submit get counter 3. The tomcat was returning session related information of Browser B to browser A.
I took caution to start browser as a separate instance (using "netscape &" from solaris prompt).
Any other idea to load balance two tomcat's
Thanks
Anil
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: Load Balancing
Posted by Filip Hanik <ma...@filip.net>.
what command did you use to start the loadbalancer, send me the entire
command and I can check it out
Filip
> -----Original Message-----
> From: WIPRO Anil Gandhi [mailto:WIPRO_ANIL@dm.gov.ae]
> Sent: Sunday, April 06, 2003 11:59 PM
> To: Filip Hanik; Tomcat Users List
> Subject: Load Balancing
>
>
> Hi Fillip,
>
> I am working over tomcat clustering. Used JDK 1.4.0_1, Tomcat
> 4.1.24. and also downloaded the latest JAR files from the site.
> This time I am working over two sun machines.
> Here are the steps followed.
> 1. Downloaded and installed tomcat.
> 2. Installed JDK
> 3. placed tomcat-replication.jar under /server/lib (latest one).
> 4. Copied modified Class file (having Serialization extended)
> under /opt/tomcat/jakarta-tomcat/webapps/examples/WEB-INF/classes/num/
> 5. tested multicasting using "java -cp tomcat-replication.jar
> MCaster 228.1.2.3 45566 MachineSpecificHello", this was happening
> as expected.
> 6 Started load balancer using tcploadbalancer.jar on port 81 on nocadm20
> 7. accessed the url using the netscape brower 4.6.x (sun machine )
> 8. Story :
> my machine names are nocadm20 and nocadm40.
>
> For all reference I am testing number guess program in tomcat
> examples. I have modified NumberGuess class file. Have extended
> Serializable interface.
>
> I opened one browser (A) instance and accessed the page, page
> from nocadm20 opened.
> Opened another brower (B) instance and acccesed another page,
> page from nocadm40 opened.
> Now when I type number and submit (original page from nocadm40)),
> page from nocadm20 loads ( this is abnormal probably load
> balancer is having bug).
>
> Now the status of Browser A Page from Nocadm20 with counter - 1
> Now the status of Browser B Page loaded page from Nocadm20 with
> counter - 2
> When I access Browser A and type number and submit get counter 3.
> The tomcat was returning session related information of Browser B
> to browser A.
> I took caution to start browser as a separate instance (using
> "netscape &" from solaris prompt).
>
> Any other idea to load balance two tomcat's
>
> Thanks
> Anil
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
help! many idle connections from a single IP
Posted by joseph lam <jo...@quotepower.com>.
Using netstat I've found that there are over a hundred ESTABLISHED
connections connected from a single IP address which eat up a large
portion of my tomcat http processors, but all of the connections are
idle as seen in the tomcat access log. Is there a way to automatically
kill those connections to free up the tomcat processors?
Joseph
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: Load Balancing
Posted by Filip Hanik <ma...@filip.net>.
oopps, I didnt mean to send this to the list, please don't crash my IM :)
> -----Original Message-----
> From: Filip Hanik [mailto:mail@filip.net]
> Sent: Monday, April 07, 2003 9:15 PM
> To: Tomcat Users List
> Subject: RE: Load Balancing
>
>
> try to catch me on Yahoo IM, my user id is *****
>
> Filip
>
> > -----Original Message-----
> > From: WIPRO Anil Gandhi [mailto:WIPRO_ANIL@dm.gov.ae]
> > Sent: Sunday, April 06, 2003 11:59 PM
> > To: Filip Hanik; Tomcat Users List
> > Subject: Load Balancing
> >
> >
> > Hi Fillip,
> >
> > I am working over tomcat clustering. Used JDK 1.4.0_1, Tomcat
> > 4.1.24. and also downloaded the latest JAR files from the site.
> > This time I am working over two sun machines.
> > Here are the steps followed.
> > 1. Downloaded and installed tomcat.
> > 2. Installed JDK
> > 3. placed tomcat-replication.jar under /server/lib (latest one).
> > 4. Copied modified Class file (having Serialization extended)
> > under /opt/tomcat/jakarta-tomcat/webapps/examples/WEB-INF/classes/num/
> > 5. tested multicasting using "java -cp tomcat-replication.jar
> > MCaster 228.1.2.3 45566 MachineSpecificHello", this was happening
> > as expected.
> > 6 Started load balancer using tcploadbalancer.jar on port 81 on nocadm20
> > 7. accessed the url using the netscape brower 4.6.x (sun machine )
> > 8. Story :
> > my machine names are nocadm20 and nocadm40.
> >
> > For all reference I am testing number guess program in tomcat
> > examples. I have modified NumberGuess class file. Have extended
> > Serializable interface.
> >
> > I opened one browser (A) instance and accessed the page, page
> > from nocadm20 opened.
> > Opened another brower (B) instance and acccesed another page,
> > page from nocadm40 opened.
> > Now when I type number and submit (original page from nocadm40)),
> > page from nocadm20 loads ( this is abnormal probably load
> > balancer is having bug).
> >
> > Now the status of Browser A Page from Nocadm20 with counter - 1
> > Now the status of Browser B Page loaded page from Nocadm20 with
> > counter - 2
> > When I access Browser A and type number and submit get counter 3.
> > The tomcat was returning session related information of Browser B
> > to browser A.
> > I took caution to start browser as a separate instance (using
> > "netscape &" from solaris prompt).
> >
> > Any other idea to load balance two tomcat's
> >
> > Thanks
> > Anil
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
RE: Load Balancing
Posted by Filip Hanik <ma...@filip.net>.
try to catch me on Yahoo IM, my user id is fhanik
Filip
> -----Original Message-----
> From: WIPRO Anil Gandhi [mailto:WIPRO_ANIL@dm.gov.ae]
> Sent: Sunday, April 06, 2003 11:59 PM
> To: Filip Hanik; Tomcat Users List
> Subject: Load Balancing
>
>
> Hi Fillip,
>
> I am working over tomcat clustering. Used JDK 1.4.0_1, Tomcat
> 4.1.24. and also downloaded the latest JAR files from the site.
> This time I am working over two sun machines.
> Here are the steps followed.
> 1. Downloaded and installed tomcat.
> 2. Installed JDK
> 3. placed tomcat-replication.jar under /server/lib (latest one).
> 4. Copied modified Class file (having Serialization extended)
> under /opt/tomcat/jakarta-tomcat/webapps/examples/WEB-INF/classes/num/
> 5. tested multicasting using "java -cp tomcat-replication.jar
> MCaster 228.1.2.3 45566 MachineSpecificHello", this was happening
> as expected.
> 6 Started load balancer using tcploadbalancer.jar on port 81 on nocadm20
> 7. accessed the url using the netscape brower 4.6.x (sun machine )
> 8. Story :
> my machine names are nocadm20 and nocadm40.
>
> For all reference I am testing number guess program in tomcat
> examples. I have modified NumberGuess class file. Have extended
> Serializable interface.
>
> I opened one browser (A) instance and accessed the page, page
> from nocadm20 opened.
> Opened another brower (B) instance and acccesed another page,
> page from nocadm40 opened.
> Now when I type number and submit (original page from nocadm40)),
> page from nocadm20 loads ( this is abnormal probably load
> balancer is having bug).
>
> Now the status of Browser A Page from Nocadm20 with counter - 1
> Now the status of Browser B Page loaded page from Nocadm20 with
> counter - 2
> When I access Browser A and type number and submit get counter 3.
> The tomcat was returning session related information of Browser B
> to browser A.
> I took caution to start browser as a separate instance (using
> "netscape &" from solaris prompt).
>
> Any other idea to load balance two tomcat's
>
> Thanks
> Anil
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org