https://issues.apache.org/bugzilla/show_bug.cgi?id=46835
Summary: JkLogLevel emerg not working properly
Product: Apache httpd-2
Version: 2.2.6
Platform: Sun
OS/Version: Solaris
Status: NEW
Severity: normal
Priority: P3
Component: All
AssignedTo: [email protected]
ReportedBy: [email protected]
I have following configuration in my Apache. and the JkLogLevel tried as
"error" as well as "emerg". But its logging too many things even though they
are not of error or emerg type.
I have included httpd-test.conf in httpd.conf
Include conf/cdm/httpd-test.conf
httpd-test.conf relevant settings,
---------------------------
LoadModule jk_module modules/mod_jk-1.2.26-httpd-2.2.6.so
<IfModule jk_module>
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel emerg
</IfModule>
# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
# JkRequestLogFormat set the request format
JkRequestLogFormat "%w %V %T"
Listen 81
<VirtualHost *:81>
# ServerAdmin [email protected]
DocumentRoot "/usr/local/apache2/htdocs"
errorLog logs/server-81-error_log
CustomLog logs/server-81-access_log common
TransferLog "|/usr/local/apache2/bin/rotatelogs
/usr/local/apache2/logs/server-81-access_log 20M"
TransferLog "|/usr/local/apache2/bin/rotatelogs
/usr/local/apache2/logs/server-81-error_log 20M"
RewriteEngine on
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]
RewriteRule ^/$ http://%{HTTP_HOST}/sds/home.do?a=welc [L,R=permanent]
RewriteRule ^/loads/pr1$ http://%{HTTP_HOST}/sdg/home.do?a=pr1
[L,R=permanent]
RewriteRule ^/loads/pr2$ http://%{HTTP_HOST}/sdg/home.do?a=pr2
[L,R=permanent]
RewriteRule ^/loads/pr3$ http://%{HTTP_HOST}/sdg/home.do?a=pr3
[L,R=permanent]
RewriteRule ^/loads/dump$ http://%{HTTP_HOST}/sdg/home.do?a=dump
[L,R=permanent]
RewriteRule ^/loads/pr0$ http://%{HTTP_HOST}/sdg/home.do?a=pr0
[L,R=permanent]
RewriteRule ^/loads/dll$ http://%{HTTP_HOST}/sdg/home.do?a=dll
[L,R=permanent]
RewriteRule ^/loads/htc6800kbddll$ http://%{HTTP_HOST}/sdg/home.do?a=kbptch
[L,R=permanent]
### JK Manager used for status
#JkMount /jkmanager/* jkstatus
JkMount /sds SDSRouter
JkMount /sds/* SDSRouter
JkMount /sdg WAPRouter
JkMount /sdg/* WAPRouter
JkMount /cs WAPRouter
JkMount /cs/* WAPRouter
ErrorDocument 404 /missing.html
ErrorDocument 500 /missing.html
</VirtualHost>
-------------------------------------
workers.properties relevant settings
-------------------------------------
worker.list=WAPRouter,MCRouter,SDSRouter,INTRouter,CSRouter,jkstatus
# Add the status worker to the worker list
worker.jkstatus.type=status
# test-3-10.11.12.45 config
worker.test-3-10.11.12.45.port=9002
worker.test-3-10.11.12.45.host=10.11.12.45
worker.test-3-10.11.12.45.type=ajp13
worker.test-3-10.11.12.45.lbfactor=1
worker.test-3-10.11.12.45.cachesize=10
worker.test-3-10.11.12.45.cache_timeout=600
# test-3-10.11.12.48 config
worker.test-3-10.11.12.48.port=9002
worker.test-3-10.11.12.48.host=10.11.12.48
worker.test-3-10.11.12.48.type=ajp13
worker.test-3-10.11.12.48.lbfactor=1
worker.test-3-10.11.12.48.cachesize=10
worker.test-3-10.11.12.48.cache_timeout=600
# Define the WAPRouter (LB) worker
worker.WAPRouter.type=lb
worker.WAPRouter.sticky_session=1
#worker.WAPRouter.balanced_workers=test-3-10.11.12.45,test-3-10.11.12.48
worker.WAPRouter.balanced_workers=test-3-10.11.12.45
-------
--------
ISSUE
--------
Even though the, "JkLogLevel emerg" or "JkLogLevel error"
its logging manything in mod_jk.log. As these below example logs we get too
frequently in 6months the file size reaches nearly 10GB.
Ex:
mod_jk.log contains...
[Wed Mar 11 10:25:40 2009] WAPRouter test.mp.com 0.020803
[Wed Mar 11 10:25:43 2009] SDSRouter test.mp.com 0.020174
[Wed Mar 11 10:25:51 2009] WAPRouter test.mp.com 9.322314
[Wed Mar 11 10:25:58 2009] WAPRouter test.mp.com 0.627702
[Wed Mar 11 10:26:26 2009] WAPRouter test.mp.com 0.013673
[Wed Mar 11 10:26:28 2009] WAPRouter test.mp.com 1.422167
[Wed Mar 11 10:28:23 2009] SDSRouter test.mp.com 0.015468
[Wed Mar 11 10:28:43 2009] WAPRouter test.mp.com 162.187092
[Wed Mar 11 10:28:56 2009] SDSRouter test.mp.com 4.255728
[Wed Mar 11 10:29:18 2009] SDSRouter test.mp.com 0.314163
[Wed Mar 11 10:30:11 2009] SDSRouter test.mp.com 4.271985
Can you please look into this and give steps to resolve if possible.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]