wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Multi Instance in Tomcat! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Multi Instance in Tomcat!" Watch "Multi Instance in Tomcat!" New topic
Author

Multi Instance in Tomcat!

eric sato
Ranch Hand

Joined: Oct 01, 2002
Posts: 37
hi all,
i'm using Apache as main web server, and tomcat (in multi instances) to serve respective jsp and servlet.
i found out that if only if 1 tomcat is running, everything is perfect and smooth. But if more than 1 tomcat instance runnnig (whether is servlets-examples or test context), the user screen sometimes will get blank (only when they call servlet/jsp).
Pls help. below is my workers2.properties file. i'm confident i'm having inefficient worker's config file.
Thanks in advance.

############ Below there is my workers2.properties file#########################
[logger.file:]
level=EMERG
file=/var/log/httpd/mod_jk2.log
[lb:lb]
[shm:]
info=Shared memory for multiprocessing
file=/var/log/httpd/mod_jk2.shm
size=1048576
[channel.socket:localhost:8009]
info=Ajp13 channel forwarding over a tcp socket
host=localhost
port=8009
tomcatId=tomcat1
#worker tomcat1
[ajp13:localhost:8009]
channel=channel.socket=localhost:8009
host=localhost
group=lb
[uri:/jsp-examples/*]
worker=ajp13:localhost:8009
group=lb
info=display examples
[uri:/servlets-examples/*]
info=display servelts

[channel.socket:localhost:8109]
info=Ajp13 channel fowarding over a tecp socket
host=localhost
port=8109
tomcatId=tomcat2
#worker tomcat2
[ajp13:localhost:8109]
channel=channel.socket=localhost:8109
group=lb
[uri:/test/*]
info=test page
[status:]
info=Status worker
#[uri:/jkstatus/*]
#info=Display jk2 status page
#group=status


If you can't change the direction the the wind, change your sail.
eric sato
Ranch Hand

Joined: Oct 01, 2002
Posts: 37
hi all,
i guess i found the answer for it. This prob related with group. i just add another group [lb2:]. then my problem solved.
sato
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Multi Instance in Tomcat!