All,

We have apache running on Windows Web Server 2008 R2, fronting tomcat. We
use mod_jk to connect. We see these kind of log messages in mod_jk logs.
What do they mean?

[Thu Jul 28 12:30:56 2011] [14264:10144] [info] jk_ajp_common.c (1882):
Writing to client aborted or client network problems
[Thu Jul 28 12:30:56 2011] [14264:10144] [info] jk_ajp_common.c (2540):
(workerXtsRbge) sending request to tomcat failed (unrecoverable), because of
client write error (attempt=1)

   - Specifically what is the client here? The browser that called apache,
   or mod_jk as a client of tomcat?
   - What do the numbers in brackets mean [14264:10144] - bytes and time?
   - Does this mean that the browser was sent a http 500?
   - Is there a way that I can get the uniqueId logged along with these
   lines to make correlating the access and mod_)jk log easier?
   - I think I read somewhere that by default mod_jk will try a tomcat call
   once, and if that fails try again before giving up. Does the "attempt=1"
   mean this is the result of the first attempt or is it the result of the
   second (e.g. 0 based)? I assume that in the absence of a attempt=0 this must
   mean that the first attempt failed, and therefore assume that the second
   succeeded. Is this a fair assumption?

Under jkstatus I see Err and CE. From the legend Err means "Number of failed
requests" and CE is "Number of client errors".

Apache 2.2.17 - httpd.conf

    LoadModule    jk_module  modules/mod_jk.so
    JkWorkersFile d:/apps/Apache2.2/conf/workers.properties
    JkShmFile     d:/apps/Apache2.2/temp/mod_jk.shm
    JkLogFile     "|d:/apps/Apache2.2/bin/cronolog.exe
logs/mod_jk.%Y%m%d.log"
    JkLogLevel    info
    JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
    JkExtractSSL On
    JkHTTPSIndicator HTTPS
    JkSESSIONIndicator SSL_SESSION_ID
    JkCIPHERIndicator SSL_CIPHER
    JkCERTSIndicator SSL_CLIENT_CERT
    JkEnvVar UNIQUE_ID unknown
    JkEnvVar SSL_CLIENT_V_START

Then within a virtual host element

    JkMount  /* workerXtsRbge
    JkUnMount /index.html workerXtsRbge
    JkUnMount /ie6unsupported.html workerXtsRbge

mod_jk v1.2.30 - worker.properties

  worker.list=mystatus, workerXtsRbge

  worker.template.type=ajp13
  worker.template.host=localhost
  worker.template.ping_timeout=1000
  worker.template.ping_mode=A

  worker.workerXtsRbge.reference=worker.template
  worker.workerXtsRbge.port=8010

Tomcat v7.0.12 - server.xml

    <Connector port="8010" protocol="AJP/1.3" redirectPort="8443"
enableLookups="false" />

Thanks

Chris

Reply via email to