Contact Us
  
 
 
    SearchSearch   RegisterRegister   Log inLog in 

workers2.properties file for mod_jk2.so

workers2.properties file for mod_jk2.so

 
Post new topic   Reply to topic     Forum Index -> Tomcat Clustering TroubleShooting
View previous topic :: View next topic  
Author Message
admin
Site Admin


Joined: 24 Aug 2006
Posts: 30

PostPosted: Sun Mar 18, 2007 5:14 am    Post subject: workers2.properties file for mod_jk2.so Reply with quote




This file can help for those want to work with modules mod_jk2 in apache tomcat clustering configuration. This is workers2.properties file, also need jk2.shm file in same folder. Make any empty file and rename it to jk2.shm


Code:


# settings for logger of type Apache2
[logger.apache2]
file="D:\webserver\Apache2\logs\error.log"
level=INFO
debug=1

# Provide the basic config needed
[config]
file=D:\webserver\Apache2\conf\workers2.properties
debug=0


[channel.socket:localhost:8009]
host=localhost
port=8009
tomcatId=machine1
group=balanced
lb_factor=1
# route=tc1

[ajp13:localhost:8009]
channel=channel.socket:machine1


[channel.socket:localhost:8109]
host=localhost
port=8109
tomcatId=machine2
group=balanced
lb_factor=1
# route=tc1

[ajp13:localhost:8109]
channel=channel.socket:machine2


[channel.socket:localhost:8209]
host=localhost
port=8209
tomcatId=machine3
group=balanced
lb_factor=1
# route=tc1

[ajp13:localhost:8209]
channel=channel.socket:machine3

[lb:balanced]
worker=ajp13:localhost:8009
worker=ajp13:localhost:8109
worker=ajp13:localhost:8209
timeout=90
attempts=3
recovery=30
StickySession=0
noWorkersMsg=Server Busy please retry later
noWorkerCodeMsg=503


# Shared Memory file settings
[shm]
file=D:\webserver\Apache2\conf\jk2.shm
size=1000000

# Map the Tomcat jsp-examples webapp to the Web server uri space
[uri:/sumit/*]
info=mapping the jsp-examples context of Tomcat
context=/sumit
group=balanced



this file should be in conf directory of apache
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Tomcat Clustering TroubleShooting All times are GMT
Page 1 of 1

 
Jump to:  
  Quick Post a Reply Topic
     
  Name (required)  
     
  Email Address (will not be published) (required)  
     
  Subject of topic (required)  
     
   
     
   
     
  Advertisement  
     
 
     


  More Links  
 
JSP Introduction
JSP Setup
Simple JSP Example
JSP Variable
Array Declaration in JSP
JSP Forms and User Input
Form Validation
JSP Cookies
JSP Session Object
Loop, content collection, iterator, conditional check in JSP
JSP Application Object
JSP Include
JSP Response Object
JSP Request Object
JSP Error Handling
JSP File Handling Object
JSP Action Tag
JSP Implicit Objects
JSP Declaration
JSP Directive
JDBC Introduction
JDBC Driver
JDBC Connection
JDBC Prepared/Statement
JDBC ResultSet
JDBC Close Connection object
JDBC Insert
JDBC Display Records
JDBC Update
JDBC Delete
JDBC Sorting
JDBC Query
JDBC Exception
JDBC Add Batch
JDBC Transaction/RollBack