Re: Problems with load balancing

2003-12-22 Thread Steve
anybody have any luck with this under mod_jk2

need sticky to work still not having any luck, request keep going back n 
forth and not sticking..

-steve

javen fang wrote:

http://www.ubeans.com/tomcat/

--- Yuval  Zantkeren [EMAIL PROTECTED] wrote:
 

Hi,

I'm running 2 Tomcats 4.1.27 on the same server I
changed the server.xml in
both of them, I erased the standalone and wrote this
Engine jvmRoute=tc1 name=Standalone
defaultHost=localhost debug=0
Engine jvmRoute=tc2 name=Standalone
defaultHost=localhost debug=0
I changed the workers2.properties like this:
[logger]
level=DEBUG
[config:]

   

file=C:/jakarta-tomcat-4.1.27/conf/workers2.properties
 

debug=0
debugEnv=0
[uriMap:]
info=Maps the requests. Options: debug
debug=0
# Alternate file logger
[logger.file:0]
level=DEBUG
file=C:/jakarta-tomcat-4.1.27/logs/jk2.log
[shm:]
info=Scoreboard. Required for reconfiguration and
status with multiprocess
servers
file=C:/jakarta-tomcat-4.1.27/logs/jk2.shm
size=1048576
debug=0
disabled=0
[workerEnv:]
info=Global server options
timing=1
debug=0
# Default Native Logger (apache2 or win32 )
# can be overriden to a file logger, useful
# when tracing win32 related issues
#logger=logger.file:0
[lb:lb]
info=Default load balancer.
debug=0
[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=tc1
lb_factor=1
group=lb
[channel.socket:localhost:8010]
info=A second tomcat instance.
debug=0
tomcatId=tc2
lb_factor=1
group=lb
disabled=0
[status:]
info=Status worker, displays runtime informations
[uri:/jkstatus/*]
info=Display status information and checks the
config file for changes.
group=status:
[uri:/newer/*.do]
info=Prefix mapping
[uri:/newer/*.jsp]
info=Extension mapping
[uri:/newer/*]
info=The Legacy webapp.
debug=0
But only the first tomcat serves the servlets, I
don't get any error but the
first refresh the 1st tomcat works and in the 2nd
refresh nothing happen.
Please advise,

Regards,

Yuval Zantkeren

#25567;his email message and any attachments hereto
   

are
 

intended only for use by
the addressee(s) named above, and may contain
legally privileged and/or
confidential information. If you are not the
intended addressee, you are
hereby kindly notified that any dissemination,
distribution or copying of
this email and any attachments hereto is strictly
prohibited. If you have
received this email in error, kindly delete it from
your computer system,
and notify us at the telephone number or email
address appearing above.
Thank you


   

-
 

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



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



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


Problems with load balancing

2003-12-21 Thread Yuval Zantkeren
Hi,

I'm running 2 Tomcats 4.1.27 on the same server I changed the server.xml in
both of them, I erased the standalone and wrote this
Engine jvmRoute=tc1 name=Standalone defaultHost=localhost debug=0
Engine jvmRoute=tc2 name=Standalone defaultHost=localhost debug=0
I changed the workers2.properties like this:
[logger]
level=DEBUG

[config:]
file=C:/jakarta-tomcat-4.1.27/conf/workers2.properties
debug=0
debugEnv=0

[uriMap:]
info=Maps the requests. Options: debug
debug=0

# Alternate file logger
[logger.file:0]
level=DEBUG
file=C:/jakarta-tomcat-4.1.27/logs/jk2.log

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess
servers
file=C:/jakarta-tomcat-4.1.27/logs/jk2.shm
size=1048576
debug=0
disabled=0

[workerEnv:]
info=Global server options
timing=1
debug=0
# Default Native Logger (apache2 or win32 )
# can be overriden to a file logger, useful
# when tracing win32 related issues
#logger=logger.file:0

[lb:lb]
info=Default load balancer.
debug=0

[channel.socket:localhost:8009]
info=Ajp13 forwarding over socket
debug=0
tomcatId=tc1
lb_factor=1
group=lb

[channel.socket:localhost:8010]
info=A second tomcat instance.
debug=0
tomcatId=tc2
lb_factor=1
group=lb
disabled=0


[status:]
info=Status worker, displays runtime informations

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:

[uri:/newer/*.do]
info=Prefix mapping

[uri:/newer/*.jsp]
info=Extension mapping

[uri:/newer/*]
info=The Legacy webapp.
debug=0

But only the first tomcat serves the servlets, I don't get any error but the
first refresh the 1st tomcat works and in the 2nd refresh nothing happen.

Please advise,


Regards,

Yuval Zantkeren

This email message and any attachments hereto are intended only for use by
the addressee(s) named above, and may contain legally privileged and/or
confidential information. If you are not the intended addressee, you are
hereby kindly notified that any dissemination, distribution or copying of
this email and any attachments hereto is strictly prohibited. If you have
received this email in error, kindly delete it from your computer system,
and notify us at the telephone number or email address appearing above.
Thank you



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



Re: Problems with load balancing

2003-12-21 Thread javen fang
http://www.ubeans.com/tomcat/


--- Yuval  Zantkeren [EMAIL PROTECTED] wrote:
 Hi,
 
 I'm running 2 Tomcats 4.1.27 on the same server I
 changed the server.xml in
 both of them, I erased the standalone and wrote this
   Engine jvmRoute=tc1 name=Standalone
 defaultHost=localhost debug=0
   Engine jvmRoute=tc2 name=Standalone
 defaultHost=localhost debug=0
 I changed the workers2.properties like this:
 [logger]
 level=DEBUG
 
 [config:]

file=C:/jakarta-tomcat-4.1.27/conf/workers2.properties
 debug=0
 debugEnv=0
 
 [uriMap:]
 info=Maps the requests. Options: debug
 debug=0
 
 # Alternate file logger
 [logger.file:0]
 level=DEBUG
 file=C:/jakarta-tomcat-4.1.27/logs/jk2.log
 
 [shm:]
 info=Scoreboard. Required for reconfiguration and
 status with multiprocess
 servers
 file=C:/jakarta-tomcat-4.1.27/logs/jk2.shm
 size=1048576
 debug=0
 disabled=0
 
 [workerEnv:]
 info=Global server options
 timing=1
 debug=0
 # Default Native Logger (apache2 or win32 )
 # can be overriden to a file logger, useful
 # when tracing win32 related issues
 #logger=logger.file:0
 
 [lb:lb]
 info=Default load balancer.
 debug=0
 
 [channel.socket:localhost:8009]
 info=Ajp13 forwarding over socket
 debug=0
 tomcatId=tc1
 lb_factor=1
 group=lb
 
 [channel.socket:localhost:8010]
 info=A second tomcat instance.
 debug=0
 tomcatId=tc2
 lb_factor=1
 group=lb
 disabled=0
 
 
 [status:]
 info=Status worker, displays runtime informations
 
 [uri:/jkstatus/*]
 info=Display status information and checks the
 config file for changes.
 group=status:
 
 [uri:/newer/*.do]
 info=Prefix mapping
 
 [uri:/newer/*.jsp]
 info=Extension mapping
 
 [uri:/newer/*]
 info=The Legacy webapp.
 debug=0
 
 But only the first tomcat serves the servlets, I
 don't get any error but the
 first refresh the 1st tomcat works and in the 2nd
 refresh nothing happen.
 
 Please advise,
 
 
 Regards,
 
 Yuval Zantkeren
 
 #25567;his email message and any attachments hereto
are
 intended only for use by
 the addressee(s) named above, and may contain
 legally privileged and/or
 confidential information. If you are not the
 intended addressee, you are
 hereby kindly notified that any dissemination,
 distribution or copying of
 this email and any attachments hereto is strictly
 prohibited. If you have
 received this email in error, kindly delete it from
 your computer system,
 and notify us at the telephone number or email
 address appearing above.
 Thank you
 
 
 

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



problems with load balancing using mod_jk2 in Apache 2

2002-11-07 Thread Khamsouk Souvanlasy
Hi,

I have been having trouble trying to get load balancing working for Apache 2
and Tomcat (JBoss3.0.3 + Tomcat 4.1.12) using mod_jk2.  I have managed to
connect them using a 1-1 configuration thanks to Robert Sowder's document,
however have been unable to load balance.

Here is my workers2.properties file:

[logger]
level=DEBUG

[config:]
file=c:/Apache2/conf/workers2.properties
debug=0
debugEnv=0

[uriMap:]
info=Maps the requests. Options: debug
debug=0

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess
servers
file=c:/Apache2/logs/jk2.shm
size=100
debug=0
disabled=0

[workerEnv:]
info=Global server options
timing=1
debug=0

[lb:lb]
info=Default load balancer.
debug=0

[channel.socket:localhost:8109]
info=Ajp13 forwarding over socket
debug=0
tomcatId=localhost:8109
lb_factor=100

[channel.socket:localhost:8209]
info=A second tomcat instance.
debug=0
tomcatId=localhost:8209
lb_factor=100

[channel.jni:jni]
info=The jni channel, used if tomcat is started inprocess

[status:]
info=Status worker, displays runtime informations

[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:

[uri:/mywebapp/*.jsp]
info=Extension mapping

[uri:/mywebapp/*.do]
info=Extension mapping


However when I try to access http://localhost/mywebapp/index.jsp I get an
Internal Server Error returned from Apache.

When I go to http://localhost/jkstatus/ it shows both hosts running.

Most of the information I have seen either talk about mod_jk load balancing
and not mod_jk2 load balancing.

Any help or pointers to information woule be higly appreciated!

Kam



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




Problems with load balancing

2001-09-27 Thread Uniti Marco

Hi,

 I am using Apache 1.3.12 with mod_jserv module talking
 to tomcat 3.2.1. (system Linux suse 7.1)
 I am trying to load balance between 2 servers and my configuration is
like
 this:

 ApJServLogLevel debug

 ApJServMount /examples balance://set1/zone1

 ApJServBalance set1 Tomcat_1
 ApJServBalance set1 Tomcat_2

 ApJServHost Tomcat_1 ajpv12://1.6.60.18:18007
 ApJServHost Tomcat_2 ajpv12://1.6.60.25:28007

 ApJServRoute JS1 Tomcat_1
 ApJServRoute JS2 Tomcat_2

 ApJServShmFile /var/opt/apache/memory_shared/jserv_shm

 Doesn't work. No one read or write the file Jserv_shm and the watchdog
process don’t work.

Here is teh log file:

[26/09/2001 17:10:59:735] (INFO) setting defaults for balance
set1-Tomcat_1 (weight 1)
[26/09/2001 17:10:59:735] (INFO) setting defaults for balance
set1-Tomcat_2 (weight 1)
[26/09/2001 17:10:59:735] (INFO) setting defaults for host Tomcat_1-JS1
[26/09/2001 17:10:59:735] (INFO) setting defaults for host Tomcat_2-JS2
[26/09/2001 17:10:59:735] (INFO) setting up balance for mount
/examples/, zone zone1
[26/09/2001 17:10:59:735] (INFO) balancing host Tomcat_1-JS1
[26/09/2001 17:10:59:735] (INFO) balancing host Tomcat_2-JS2
[26/09/2001 17:11:00:029] (INFO) jserv_watchdog:(27488)
watchdog_cleanup()
[26/09/2001 17:11:00:029] (INFO) Apache Module was cleaned-up
[26/09/2001 17:11:00:031] (INFO) jserv_watchdog:(27487)
watchdog_terminate()
[26/09/2001 17:11:00:165] (INFO) setting defaults for balance
set1-Tomcat_1 (weight 1)
[26/09/2001 17:11:00:165] (INFO) setting defaults for balance
set1-Tomcat_2 (weight 1)
[26/09/2001 17:11:00:165] (INFO) setting defaults for host Tomcat_1-JS1
[26/09/2001 17:11:00:165] (INFO) setting defaults for host Tomcat_2-JS2
[26/09/2001 17:11:00:165] (INFO) setting up balance for mount
/examples/, zone zone1
[26/09/2001 17:11:00:165] (INFO) balancing host Tomcat_1-JS1
[26/09/2001 17:11:00:165] (INFO) balancing host Tomcat_2-JS2
[26/09/2001 17:12:01:966] (INFO) jserv_watchdog:(27489)
watchdog_terminate()
[26/09/2001 17:12:45:314] (INFO) balance: 27490 attempting to connect to

server Tomcat_1: ajpv12://1.6.60.18(123c0601):18007
[26/09/2001 17:12:45:577] (INFO) balance: 27490 successfully made
request to server Tomcat_1: ajpv12://1.6.60.18(123c0601):18007
[26/09/2001 17:12:48:362] (INFO) balance: 27490 attempting to connect to

server Tomcat_1: ajpv12://1.6.60.18(123c0601):18007
[26/09/2001 17:12:53:211] (INFO) balance: 27490 successfully made
request to server Tomcat_1: ajpv12://1.6.60.18(123c0601):18007
*[26/09/2001 17:14:40:478] (INFO) balance: continuing session: JS1
[26/09/2001 17:14:40:479] (EMERGENCY) ajp12: can not connect to host
1.6.60.18:18007
[26/09/2001 17:14:40:479] (EMERGENCY) ajp12: connection fail
[26/09/2001 17:14:40:479] (ERROR) an error returned handling request via

protocol ajpv12
[26/09/2001 17:14:40:479] (INFO) balance: continuing to 1.6.60.18:18007
[26/09/2001 17:14:40:479] (INFO) balance: 27494 JS1 unsuccessfully
[26/09/2001 17:14:40:479] (INFO) balance: 27494 attempting to connect to

server Tomcat_2: ajpv12://1.6.60.25(193c0601):28007
[26/09/2001 17:14:44:351] (INFO) balance: 27494 successfully made
request to server Tomcat_2: ajpv12://1.6.60.25(193c0601):28007


* here I have kill Tomcat_1

 Any help is greatly aprreciated

 Thanks..Marco