[analog-help] Apache does not report bytes sent accurately
Klaus Johannes Rusch
KlausRusch at atmedia.net
Tue Jan 16 12:27:32 PST 2007
Jason Linhart wrote:
> It turns out that Apache does not report bytes sent, but instead
> reports the number of bytes that "could have been" sent. In most
> situations these numbers are the same, but in certain cases they can
> be very dramatically different. On this particular site, Apache is
> reporting *ten* times the data transferred then is actually going
> across the wire.
According to the documentation, the behaviour depends on the version of
Apache used:
http://httpd.apache.org/docs/2.0/mod/mod_log_config.html
Note that in httpd 2.0, unlike 1.3, the |%b| and |%B| format strings
do not represent the number of bytes sent to the client, but simply
the size in bytes of the HTTP response (which will differ, for
instance, if the connection is aborted, or if SSL is used). The |%O|
format provided by |mod_logio
<http://httpd.apache.org/docs/2.0/mod/mod_logio.html>| will log the
actual number of bytes sent over the network.
--
Klaus Johannes Rusch
KlausRusch at atmedia.net
http://www.atmedia.net/KlausRusch/
More information about the analog-help
mailing list