Thanks very much for the clarification.
 
Loading 1,800 contexts consumes about 200MB of RAM and takes several
mintues. The contexts have no load-on-startup activity: the context
definitions contain only the docbase and the path attributes, and the
web.xml contains an empty web-app section.
 
I'm thinking I should be able to write a valve that will accomplish
lazy context creation/initialization.
>Hi,>>> I want to tomcat-enable our 1,800 student web sites without
creating the>> individual "$CATALINA_HOME/conf/[enginename]/[hostname]/"
config files.>> Is there anyway of doing this with regular
expressions?>>Consider the UserConfig listener, as detailed in the Host
configuration>reference page.  I'm not aware of a regular expression
option for>configuring any tomcat containers.>>> If I do have to define
each context, how would I configure them for>> lazy initialization to
they're not actually loaded until the first>> request?>>You can't. 
Tomcat will load and initialize all available contexts on>startup, per
the Servlet Specification.  Of course, if these contexts>don't have any
load-on-startup activity, this is a cheap, fast, and low>(but nonzero)
memory consumption activity.>>Yoav Shapira>

Reply via email to