tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tref Gare" <>
Subject tc4.1.12 and Apache2.0.43 mod_jk Root Context not appearing in mod_jk.conf
Date Tue, 29 Oct 2002 03:39:02 GMT
Hi All,

Any help much appreciated.

We've got a tomcat 4.1.12 and Apache 2.0.43 connected up using mod_jk
and I'm having grief getting the root context to register in

I had thought that any contexts defined in Tomcat would be automatically
setup in mod_jk.conf, is there a secret I'm unaware of?

I've got both docBase and appBase settings set to the same location
which is also the root context. Eg:

Tomcat thinks it's docBase is /WWW/MySite
Apache thinks it's DocumentRoot is /WWW/MySite

Tomcat has currently only two contexts setup

/examples which has been moved to /WWW/MySite/examples
<Context path="/examples" docBase="examples" debug="0" reloadable="true"
This one works fine in both Tomcat standalone and via Apache

However the root context is setup as follows

<Context path="" docBase="/WWW/MySite" debug="0"/>

and just refuses to register in mod_jk.conf, leaving all jsps displaying
as pure source and WEB-INF etc wide open to the world.  

I'm swimming here.. any suggestions?


Tref Gare
Development Consultant
Level 19/114 William St, Melbourne VIC 3000
phone: +61 3 9642 5553
fax: +61 3 9642 1335
"This email is intended only for the use of the individual or entity
named above and contains information that is confidential. No
confidentiality is waived or lost by any mis-transmission. If you
received this correspondence in error, please notify the sender and
immediately delete it from your system. You must not disclose, copy or
rely on any part of this correspondence if you are not the intended
recipient. Any communication directed to clients via this message is
subject to our Agreement and relevant Project Schedule. Any information
that is transmitted via email which may offend may have been sent
without knowledge or the consent of Areeba."

-----Original Message-----
From: William Lee [] 
Sent: Tuesday, 29 October 2002 1:25 PM
To: Tomcat Users List
Subject: Re: Tomcat 4.1.12 hanging under stress?

Ben Ricker wrote:
> On Mon, 2002-10-28 at 14:38, William Lee wrote:
>>I'm running a Tomcat 4.1.12 (with the coyote connectors running SSL)
>>RH Linux with a 2.4.9 kernel and IBM JRE 1.3.1 build
> I am wondering about the kernel version here; you have rather old
> kernel, a version which is considered unstable. I would suggest
> upgrading the kernel, especially since you have SMP.
> This is just a small suggestion.....anything in the logs?
> Ben Ricker

Hmm, it may have something to do with the kernel, I'll try later to see 
whether this is the case.  I don't think the log gives me much though. 
Anyhow, I've made a weird discovery that I found interesting.

It seems like there's a "barrier" when the JVM consume around 90MB of 
RAM.  Once the JVM got over that barrier, then things will keep working.

  The strange thing is, under not-so-heavy load (< 30 concurrent users),

somehow it failed to break that barrier and the socket hung when it 
reaches that point.  If I drive the load up ( 50, 100, or even 200 
concurrent connections), somehow it breaks that barrier and things will 
work without any problem.  Does anyone know why this is the case?

William Lee (Will)        | Sendmail Inc.
Email: |
Tel:    (510) 594-5505    |

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message