tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: tomcat won't download large files -- out of memory error
Date Fri, 26 Sep 2008 18:19:38 GMT
DIGLLOYD INC wrote:
> Thanks to multiple people responding to this!
> 
> My site diglloyd.com serves almost entirely static content, with many
> large JPEG files.
> 
> I have set:
> CATALINA_OPTS=-Xmx1024M
> 
> That's limiting the JVM to 1GB of memory. And in
> tomcat/conf/context.xml, I set:
> 
> <Context  cacheMaxSize="1500000" cacheTTL="60000" cachingAllowed="true" >
> 
> Therein presumably lies the problem.  I'll change CATALINA_OPTS to be
> 2GB or so and retry.

You'll probably need to be using a 64-bit JVM to set that to 2GB.

> Mark, it would be helpful to be able to say "don't cache anything larger
> the N kilobytes/megabytes". I'd probably use a setting of 2MB or so for
> that.
cacheObjectMaxSize is now configurable (at least in trunk). The only
limitation is that it can't be greater than cacheMaxSize/20.

Mark



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


Mime
View raw message