> From: John Le [mailto:[EMAIL PROTECTED] 
> Subject: Tomcat 5.5 server.xml

> I have my web site files in webapps/mywebsite and lets assume 
> I can't use webapps/ROOT.

Why would we assume that?  The straightforward solution is to change the
name of your webapp's directory to ROOT and you're done.  Alternatively,
don't deploy your webapp under the <Host> appBase directory - keep it
outside of Tomcat's directory tree, and create a
conf/Catalina/[host]/ROOT.xml file containing a <Context> element with
an absolute docBase attribute pointing to the webapp location.  Do not
use a path attribute in this scenario.

> I get a PermGen space out of memory error and soon after 
> the web site dies.

You most likely have a memory leak in the application, regardless of
whether or not it's a "professional" webapp.  Hibernate is also
notorious for chewing up the heap, although it doesn't usually fill up
PermGen.  Assuming your PermGen is adequately sized, you need to run a
profiler and find out who's creating all the Class objects and where
they're doing it.  Deploying the webapp twice (which is what you're
doing by refusing to name it properly) does increase the load on
PermGen.

> I'm using Tomcat 5.5.20 and Java JDK/JRE 1.5.0_07.

Both of those could be upgraded a bit, just to rule out some esoteric
problem that's already been fixed.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to