Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: mod_jk - can't add new worker |
|
Author |
|
Qmpeltaty
Joined: 06 Feb 2008 Posts: 182 Location: Poland
|
Posted: Fri 05 Oct '12 11:14 Post subject: mod_jk - can't add new worker |
|
|
Hello
I have Apache fronted Tomcat server. I have to add another Tomcat instance but when i try to do this i'm gettin error which stop Apache to run.
Error :
Code: |
[Oct 05 12:05:27][5308:125996] [error] ajp_worker_factory::jk_ajp_common.c (3007): allocating ajp worker record from shared memory
[Oct 05 12:05:27][5308:125996] [error] wc_create_worker::jk_worker.c (150): factory for ajp13 failed for node6
[Oct 05 12:05:27][5308:125996] [error] build_worker_map::jk_worker.c (261): failed to create worker node6
|
What is more frustrating i even can't change the name of node5 to f.x. node4 - gettin same error !!!
Apache2.4.3x64 with mod_jk 1.2.37 - both from apachelounge.com
workers.properties :
Code: |
worker.list=loadbalancer, status, node1, node4, node5
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=node1
worker.loadbalancer.sticky_session=1
worker.status.type=status
worker.template.type=ajp13
worker.template.max_packet_size=65536
worker.template.lbfactor=1
worker.template.connect_timeout=15000
worker.template.socket_timeout=60
worker.template.connection_pool_timeout=60
worker.template.socket_keepalive=True
worker.node1.reference=worker.template
worker.node1.port=8109
worker.node1.host=192.168.0.171
worker.node4.reference=worker.template
worker.node4.port=8109
worker.node4.host=192.168.0.174
worker.node5.reference=worker.template
worker.node5.port=8109
worker.node5.host=192.168.0.175
|
mod_jk.conf :
Code: |
LoadModule jk_module modules/mod_jk.so
JkWorkersFile conf/workers.properties
JkShmFile "C:/Apache2.4.3-x64/logs/mod_jk.shm"
JkLogFile "|bin/rotatelogs.exe e:/logs/apache/mod_jk/mod_jk 15M"
JkLogLevel error
JkLogStampFormat "[%b %d %H:%M:%S]"
JkRequestLogFormat "%w %T"
JkOptions +ForwardKeySize +ForwardURICompatUnparsed -ForwardDirectories
|
Any insights? Has anyone else seen this? Is this an Apache2.4.3-x64 problem or a new/reoccurring JK Connector bug or a configuration problem?
Node5 has been added few days ago - no problem with that. Now i can't even change the worker name.
Edit : move this topic to third party modules please
Last edited by Qmpeltaty on Fri 05 Oct '12 14:41; edited 1 time in total |
|
Back to top |
|
Qmpeltaty
Joined: 06 Feb 2008 Posts: 182 Location: Poland
|
Posted: Fri 05 Oct '12 14:38 Post subject: |
|
|
I had to remove this line from mod_jk :
Code: | JkShmFile "C:/Apache2.4.3-x64/logs/mod_jk.shm" |
and problem has dissapeared. |
|
Back to top |
|
|
|
|
|
|