You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Marcus Dillury <ma...@socialchange.net.au> on 2001/05/31 07:35:25 UTC
mod_jk causing httpd blowout??
Hello,
We have a production machine, running RH 7 and apache-1.3.14-3.
We have recently upgraded the jsp server from Jrun 2.3 to
tomcat-3.2.2-beta3.1.
When we use the mod_jk/ajp13 connector in apache to talk to tomcat we
experince huge load averages > 30, and http CPU uses > 40%.
The set up is basically as follows:
In httpd.conf
##Load tomcat relevant modules. mod_jk config
LoadModule jk_module modules/mod_jk.so
AddModule mod_jk.c
##
## configure mod_jk
JkWorkersFile /var/tomcat/conf/workers.properties
JkLogFile /var/tomcat/logs/mod_jk.log
JkLogLevel warn
JkMount /servlet/* ajp13
and with virtual servers I have set:
<VirtualHost 192.168.1.19:80>
...
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
...
<DirectoryMatch /WEB-INF>
AllowOverride None
deny from all
</DirectoryMatch>
...
</VirtualHost>
some of our web-applications also call a postgres database located on
another machine.
How ever when we take out the mod_jk connector, and use a simple page
redirect to port 8080 (tomcat stand-alone.) We do not have this problem.
load averages are typically less than 2 with this setup.
Unfortunatly this configuration is a hack solution,
and I would like to find out why mod_jk is causing such a tremendous load
on the system.
Is it a bug with ajp13/ mod_jk or is it my configuration?
I didn't have this problem with Jrun. As it stands tomcat isn't stable
enough to use in a production environment.
Please advise.
Thanks in advance.
--Marcus