Hello Mark,
We changed the config like it was suggested on Tomcat Site, but sometimes, the
Websites takes too long and endless loading process in the frontend. But this
only for one off the apps,.. die other wepapps going on in the Cluster.
No Timeout will be thrown. In Backend everything seems to be ok.
Worker.properties:
# List the workers name
worker.list= worker3,loadbalancer,jkstatus
worker.maintain= 120
# ----------------
# First worker
# ----------------
worker.worker1.port=8010
worker.worker1.host=k0.domain.local
#worker.worker1.host=xxx.xx.5.78
worker.worker1.type=ajp13
worker.worker1.lbfactor=75
worker.worker1.route=worker1
worker.worker1.activation=active
# ----------------
# Second worker
# ----------------
worker.worker2.port=8010
worker.worker2.host=k1.domain.local
#worker.worker2.host=xxx.xx.5.77
worker.worker2.type=ajp13
worker.worker2.lbfactor=100
worker.worker2.route=worker2
worker.worker2.activation=active
# ----------------
# qas worker
# ----------------
worker.worker3.port=8011
worker.worker3.host=k0.domain.local
#worker.worker3.host=xxx.xx.5.78
worker.worker3.type=ajp13
worker.worker3.lbfactor=1
worker.worker3.activation=active
# ----------------------
# Load Balancer worker
# ----------------------
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=worker1,worker2
worker.loadbalancer.sticky_session=true
worker.loadbalancer.sticky_session_force=false
worker.loadbalancer.method=Busyness
worker.loadbalancer.retries=4
worker.loadbalancer.secret=XXXXXXXXX
# Define a 'jkstatus' worker using status
worker.jkstatus.type=status
=================================================================================
Httpd.conf:
LoadModule jk_module modules/mod_jk.so
JkWorkersFile conf/worker.properties
JkLogFile "|D:/XXXXX/software/Apache/bin/rotatelogs.exe
D:/XXXXX/logs/software/Apache/mod_jk.log 3600"
# LEvel error|warn|debug
JkLogLevel warn
ThreadLimit 1920
ThreadsPerChild 1920
MaxRequestsPerChild 0
Include conf/extra/httpd-vhosts.conf
==================================================================================
Httpd-vhosts.conf
NameVirtualHost *:80
### Default vHost ###
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "D:\XXXXXX\software\Apache\htdocs"
#ServerName k0.domain.local
ServerName xxx.xx.5.78
# Add the jkstatus mount point
JkMount /jkmanager/* jkstatus
JkMount /probe/* loadbalancer
#Enable the JK manager access from localhost only
<Location /jkmanager/>
JkMount jkstatus
Order deny,allow
Deny from all
Allow from 127.0.0.1
Allow from xxx.xxx.214.132
</Location>
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "D:\xxxxx\apps\extranet"
#ServerName k0.domain.local
ServerName xxx.xx.5.78
ServerAlias k0.xxxxxxx-extra.net
<Directory "D:\xxxxx\apps\extranet">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
## Tomcatanbindung
JkMount /* loadbalancer
JkUnMount /*.gif loadbalancer
JkUnMount /*.jpg loadbalancer
JkUnMount /*.jpeg loadbalancer
JkUnMount /*.png loadbalancer
JkUnMount /*.css loadbalancer
JkUnMount /*.js loadbalancer
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "D:\xxxx\apps\akademie"
#ServerName k0.domain.local
ServerName xxx.xx.5.78
ServerAlias dev.xxxxxxx.de
ServerAlias staging.xxxxxxx.de
<Directory "D:\xxxxx\apps\akademie">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
## Tomcatanbindung
JkMount /* loadbalancer
JkUnMount /*.gif loadbalancer
JkUnMount /*.jpg loadbalancer
JkUnMount /*.jpeg loadbalancer
JkUnMount /*.png loadbalancer
JkUnMount /*.css loadbalancer
JkUnMount /*.js loadbalancer
</VirtualHost>
# Extra Instanz für QAS
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "D:\Tomcat_Apps\articlefinder_qas"
#ServerName k0.domain.local
ServerName xxx.xx.5.78
ServerAlias qas.xxxxxxxx.de
## Tomcatanbindung
JkMount /* worker3
</VirtualHost>
# Articlefinder
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "D:\Tomcat_Apps\articlefinder"
#ServerName k0.domain.local
ServerName xxx.xx.5.78
ServerAlias xxxx-xxxx.de
ServerAlias xxx.xxxxxx.de
ServerAlias gk0.xxxxxxxxxxx.de
## Tomcatanbindung
JkMount /* loadbalancer
</VirtualHost>
============================================================================
Server.xml
<Connector port="8010"
protocol="AJP/1.3"
connectionTimeout="30000"
redirectPort="8444"
request.useSecret="true"
request.secret="xxxxxxxxx"
maxThreads="10000"
tcpNoDelay="true" />
Greetings
Alexander
-----Ursprüngliche Nachricht-----
Von: Mark Thomas [mailto:[email protected]]
Gesendet: Montag, 1. Februar 2010 11:51
An: Tomcat Users List
Betreff: Re: AW: Tomcat Cluster 6.x and HTTP/1.1 503 Service Temporarily
Unavailable
On 01/02/2010 07:40, Alexander Diedler wrote:
> 44 requests currently being processed, 1656 idle workers
I doubt you have that many AJP threads available on Tomcat.
AJP connector config in server.xml?
mod_jk config in httpd.conf?
Looks like my guess was right.
Mark
---------------------------------------------------------------------
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]