On Fri, 27 May 2005 08:57:02 -0700, Jeremy Wadsack <[EMAIL PROTECTED]> wrote:



[EMAIL PROTECTED] wrote:

Then the only
option I would see is that Apache somehow 'ignores' file-sizes in some situations... (e.g.
for dynamic PHP-pages?)


This could be the issue right here. In Apache, %b is "the size of the object returned to the client, not including the response headers." I don't know if this is calculated from the actual bytes transferred or the Content-Length header sent with the object. There are two possiblities here. If the Content-Length header is used, then perhaps you are not setting it in your PHP files. More likely, if the actual size of the data _sent_ to the client is used, then it's very likely that many of your visitors are clicking on a large file and then cancelling the download. So they actually only transfer say 300MB of the file before they give up or lose connection. This gets logged instead of the 5GB image size you are expecting.

You could probably do some tests with this fairly easily and find out what's written to your logs.


I've discovered the reason after this hint indeed. The server seems to sent massive amounts of 304 messages. They record as no bytes, but due to the huge amount of them (about half of all generated requests), more traffic is generated then Apache logs. I've also discovered that Apache seems to 304 PHP pages as well, which can explain the huge amount of 304's.

On the PHP-pages it send, it doesn't send the actual size of the page, but the transferred data (the size of the generated HTML). I discovered this as well in it, so it does not sent the Content-Length header as it appears. Anyways, I should start modifying my Apache config to reduce the massive amount of 304 messages...

Meanwhile I still cannot find any explanation for the dip to the 1GB of data... I suppose it would have been a hick-up in Analog, since I cannot give any other explanation.
+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.meer.net/mailman/listinfo/analog-help
|
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
+------------------------------------------------------------------------

Reply via email to