users@glassfish.java.net

Re: Is GFV2 slower for serving static content?

From: Raju Uppalapati <ruppalapati_at_gmail.com>
Date: Wed, 6 Feb 2008 19:28:54 -0800

Thanks Jeanfrancois.
I will change the domain.xml accordingly.

_raju

On Feb 6, 2008 4:56 PM, Jeanfrancois Arcand <Jeanfrancois.Arcand_at_sun.com>
wrote:

> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>