users@glassfish.java.net

Re: Is GFV2 slower for serving static content?

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Wed, 06 Feb 2008 19:56:43 -0500

HI,

Raju Uppalapati wrote:
> If a web application has a lot of static content (~60% & some media
> files), would you recommend using a http server (apache) along with
> glassfish (serving the dynamic content) ?
> Is glassfish good enought to handle both static and dynamic content?
>
> I tried to download a 700MB file from glassfish doc root and it appeared
> to be slower than apache serving the same file. Did I miss some http
> listener tuning in GF.

Is file cache turned on (look in domain.xml)?

> <http-file-cache file-caching-enabled="true" file-transmission-enabled="false" globally-enabled="true" hash-init-size="0" max-age-in-seconds="30" max-files-coun
> t="1024" medium-file-size-limit-in-bytes="537600" medium-file-space-in-bytes="10485760" small-file-size-limit-in-bytes="2048" small-file-space-in-bytes="1048576"/>

The first request might be slow, but once its in the cache, performance
should significantly improve.

A+

- Jeanfrancois


>
> thanks,
> _raju