Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multi Instance in Tomcat!

 
eric sato
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
eric sato
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic