You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Andreas Haufler <ah...@hisl.de> on 2006/02/05 12:42:54 UTC

Tomcat caching

Hi everybody,

I just wanted to ask, if tomcat does caching of static contents like
html pages or images, and if yes, how the size of this cache can be set.

regards
Andreas Haufler

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


Re: Tomcat caching

Posted by Leon Rosenberg <ro...@googlemail.com>.
per default: no, but on a not-windows machine caching of static files
isn't  really needed, since the filesystem cache works very well.
However, if your amount of static content is larger then the
filesystem cache is, or you can see through measures that caching
would improve performance i would strongly suggest you look into
outsourcing the static content to a fast http server which is
specialized on content delivery like lighthttpd.
By the way, if your amount of html pages is fair (hundreds, not
thousands), make them jsp. Jsps are classes and therefore a) resides
in memory, b) are written through the jspwriter which is faster than
the servlet writer.

regards
Leon

On 2/5/06, Andreas Haufler <ah...@hisl.de> wrote:
> Hi everybody,
>
> I just wanted to ask, if tomcat does caching of static contents like
> html pages or images, and if yes, how the size of this cache can be set.
>
> regards
> Andreas Haufler
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

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