Jan Kesten wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Jeanfrancois Arcand wrote:
>
>>> Unfortunately we aren't logging that information in the access log. It
>>> shouldn't be that difficult to add support for it as it is easy to
>>> monitor the byteRead/byteWrite compression ratio (byteWrite/byteRead *
>>> 100). I've filled [1] and will try to implement it before 9.1 FCS. If
>>> you are interested to log more, just update the issue.
>
> Okay, thanks for quick reply and this information. I will have a look at
> the sources too, always interesting to learn something new and perhaps a
> good starting point to glassfish sources.
The interesting source are:
AccessLog Valve:
----------------
http://fisheye5.cenqua.com/browse/glassfish/appserv-core/src/java/com/sun/enterprise/web/PEAccessLogValve.java?r=1.25
Grizzly Compression Implementation
-----------------------------------
http://fisheye5.cenqua.com/browse/glassfish/appserv-http-engine/src/java/com/sun/enterprise/web/connector/grizzly/DefaultProcessorTask.java?r=1.9
The challenge is to log the information without impacting performance.
Right now when monitoring is enabled the performance drop because of too
many objects processing the data in GlassFish. We should probably have a
special case for http compression data that avoid requiring monitoring
to be turned on.
-- Jeanfrancois
>
> Hopefully this enhancement is useful for others too :-)
>
> Cheers,
> Jan
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.3 (MingW32)
> Comment: GnuPT 2.7.6
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFFpmFmvvmCkIIgH8QRAhpbAJ4niTC34z5hoG1JieJj+7Z+WPugbgCgqYnm
> G0abAxn71xwq6+BXlR1iM0c=
> =9PLT
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>