tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Boyce <chris.bo...@berbee.com>
Subject Re: mod_jk handling all content (not just dynamic)?
Date Mon, 22 Dec 2003 16:04:36 GMT
Yep.  I've restarted apache many times, and have noticed other unrelated
changes taking effect.  I only have one apache instance on the machine.

My Jk section in httpd.conf looks like this:

# Load mod_jk
#
LoadModule jk_module /usr/local/apache/libexec/mod_jk.so
AddModule mod_jk.c
                                                                                        #
# Configure mod_jk
#
<IfModule mod_jk.c>
JkWorkersFile /tools/tomcat/conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel debug
                                                                       
JkMount /*.jsp tomcat
JkMount /servlet/* tomcat
JkMount /servlets/CallJsp tomcat
JkMount /ssl/* tomcat
JkMount /register/* tomcat
JkMount /account/* tomcat
JkMount /cart/* tomcat
JkMount /tracking/* tomcat
JkMount /admin/modules/DisplayModsServlet tomcat
JkMount /admin/content/MSDynamicContentServlet tomcat


Our server.xml is stripped down to the bare essentials:


<Server port="8005" shutdown="SHUTDOWN" debug="3">
  <Service name="Tomcat-Apache">
    <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
port="8009" minProcessors="5" maxProcessors="350" acceptCount="10"
debug="0"/>
    <Engine name="Standalone" defaultHost="localhost" debug="3">
      <Logger className="org.apache.catalina.logger.FileLogger"
prefix="catalina_log." suffix=".txt" timestamp="true"/>
      <Host name="localhost" debug="3" appBase="/content/www.site.com"
       unpackWARs="true" autoDeploy="true">
        <Logger className="org.apache.catalina.logger.FileLogger"
directory="logs"  prefix="localhost_log." suffix=".txt"
timestamp="true"/>
        <Context path="" docBase="htdocs" reloadable="true"
crossContext="true" debug="3">
                                <Resources
className="org.apache.naming.resources.FileDirContext"
allowLinking="true" docBase="" />
         </Context>
        </Host>
    </Engine>
  </Service>
</Server>


workers.properties:

# Define retail
worker.list=tomcat
worker.tomcat.type=ajp13
worker.tomcat.host=localhost
worker.tomcat.port=8009
 

Apache and tomcat point to our site content which is located in another
filesystem (/content) on the same machine.

Our application works flawlessly without load.  If I send more than 6
connections per second with httperf, then our database connection broker
panics with "Connections exhausted!" messages.

But my original question was whether I should be seeing "Attempting to
map URI" messages for static files?  I thought the whole point of mod_jk
was to process only dynamic content.  Unless jk has to check everything,
and then decide what needs to go to java and what doesn't?

Please note, my jk_log is set to "debug" so these messages wouldn't
appear at lower levels, but I just want to find out if these messages
are a symptom of something.

Here are two more jk lines from my laptop environment (different
machine, same behaviour) for an image file:

[Mon Dec 22 09:40:50 2003]  [jk_uri_worker_map.c (500)]: Attempting to
map URI '/images/frontpage/caution/caution_h.gif'
[Mon Dec 22 09:40:50 2003]  [jk_uri_worker_map.c (618)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match



Thanks again for your help.

Chris



On Mon, 2003-12-22 at 08:33, Christopher Schultz wrote:
> Chris,
> 
> > [Sat Dec 20 13:41:33 2003]  [jk_uri_worker_map.c (500)]: Attempting
> to
> > map URI '/admin/something.html'
> >
> > [Sat Dec 20 13:41:33 2003]  [jk_uri_worker_map.c (618)]:
> > jk_uri_worker_map_t::map_uri_to_worker, done without a match
> 
> > Even if I comment out all JkMounts in httpd.conf, this problem
> occurs.
> > Is it really a problem?  It seems that jk should not even be seeing
> > requests for static content.
> 
> Did you re-start Apache after making that change? Are you sure you're
> modifying the correct file?
> 
> Send us a clip of your configuration.
> 
> -chris
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
-- 
Chris Boyce
Berbee
5520 Research Park Drive, Madison WI  53711
608.298.1286 direct
608.219.8017 mobile
608.288.3007 fax
 
Berbee...Decade 1.  1993-2003


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message