tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <>
Subject Re: tomcat won't download large files -- out of memory error
Date Fri, 26 Sep 2008 18:19:38 GMT
> Thanks to multiple people responding to this!
> My site serves almost entirely static content, with many
> large JPEG files.
> I have set:
> 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.


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message