Julian,
I would have to agree that creating a JSP per article is a bit 
much.  How did you or your group arrive at using this solution?  The
other possible solutions I have seen would include a single JSP that
pulls the data from a database or creating XML files that are 
formatted with XSLT instead of JSP's  Is the system doing some 
processing that requires one page or article or requires JSP 
capabilities that aren't found in XML/XSLT files?


Sincerely,
Pantek Incorporated
Justin L. Spies

URI: http://www.pantek.com
Ph   440.519.1802
Fax  440.248.5274
Cell 440.336.3317 



-----Original Message-----
From: Paul Yunusov [mailto:[EMAIL PROTECTED]] 
Sent: Monday, December 30, 2002 3:31 PM
To: Tomcat Users List
Subject: Re: reducing tomcat & jasper memory footprint


On Monday 30 December 2002 02:37 pm, Julian Löffelhardt wrote:
> Hi,
>
> I'm using Apache 1.3.26 and 3 tomcat 4.0.4 instances with AJP13 & 
> loadbalancing . Our application is a CMS where all the published 
> articles are generated offline as JSP-Files, one jsp per article.
>
> We had hige problems with the memory footprint. Due to the fact that 
> every jsp is generated as a class and there are about 200 new artices 
> per day the permanent segment of the JVM heap gets filled with all the

> classes, and I get an OutOfMemoryError. My workaround for now is 
> setting -XX:PermSize and --XX:MapPermSize to higher values, but this 
> just delays application hang-up.
>
> With 64 megs of permSize our Server had an approx. uptime of 1 day now

> it's about 3-4 days.
>
> Is there any way to unload jsp-Files (unload the class) ?
>
> llap,
> julian

JAVAC leaks memory every time a JSP class is compiled. The more JSPs are

compiled or the more often JSP classes are compiled, the more memory is 
leaked. You exacerbate this problem by generating a JSP per article
often.

IMHO, generating a JSP per article is misusing the technology. JSP is a 
templating solution whereas one JSP describes a layout of any number of
end 
documents. I suggest you change your software to generate an HTML file
per 
artcile rather than a JSP.

Paul

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to