Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Multi Instance in Tomcat!

 
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
 
And will you succeed? Yes you will indeed! (98 and 3/4 % guaranteed) - Seuss. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic