You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Martin Lomas <ml...@rogers.com> on 2004/06/01 14:01:06 UTC

[users@httpd] Access log size - impact on server/system?

Hello,

I've just switched away from very 'brief' access logging, to full-blown 'combined' logging, so now my access log grows at a much faster rate. I'd like to understand the impact of potentially large log-files on system and server performance.

I presume the log(s) are opened once by Apache at startup, so there's an obvious hit there. But aren't updates simply appended to logs from that point? What's a sensible point at which to rotate logs - 10mb? 100mb? My situation is a low-traffic personal site.

Running Apache 1.3.31 on Win32 Athlon 800mHz 512gb RAM.

Thanks for any advice,
Martin
http://www.musicwomb.org/

Re: [users@httpd] Access log size - impact on server/system?

Posted by Robert Andersson <ro...@profundis.nu>.
Martin Lomas wrote:
> I presume the log(s) are opened once by Apache at startup,
> so there's an obvious hit there.

Of course it will take a little time to open the logs, but not any longer
than any other file. It is not like Apache will read the logs into memory;
it will only get a filehandle so it can write to it. Talking about this as a
[performance] "hit" is misleading.

> But aren't updates simply appended to logs from that point?

Correct; this is essentially a non-issue. The problem would come when the
bandwidth of your bus chokes and/or your HD can't write faster. That could
happen if Apache is writing some 100s of megs of logs per second; if that
ever happens to your web server, you got more serious problems than logging
;-).

However, stuff like mod_rewrite's log (at highest log level) could be a
little hit; but not an issue for a low-traffic site.

> What's a sensible point at which to rotate logs - 10mb? 100mb?

Consider rotating them daily, weekly or monthly rather than by size. In your
case, monthly sound most reasonable.

> 512gb RAM.

Holy crap...

Regards,
Robert Andersson


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Access log size - impact on server/system?

Posted by dlang <dl...@invendra.net>.
This varies greatly depending on your filesystem type.

for EXT2/3 you really don't want your logs to get to large, they will slow
down significantly.

I have just recently been doing some testing of XFS and what I'm seeing
there so far is showing me that it does not slow down in the face of large
files

David Lang


On Tue, 1 Jun 2004, Martin Lomas wrote:

> Date: Tue, 1 Jun 2004 08:01:06 -0400
> From: Martin Lomas <ml...@rogers.com>
> Reply-To: users@httpd.apache.org
> To: Apache Server <us...@httpd.apache.org>
> Subject: [users@httpd] Access log size - impact on server/system?
>
> Hello,
>
> I've just switched away from very 'brief' access logging, to full-blown 'combined' logging, so now my access log grows at a much faster rate. I'd like to understand the impact of potentially large log-files on system and server performance.
>
> I presume the log(s) are opened once by Apache at startup, so there's an obvious hit there. But aren't updates simply appended to logs from that point? What's a sensible point at which to rotate logs - 10mb? 100mb? My situation is a low-traffic personal site.
>
> Running Apache 1.3.31 on Win32 Athlon 800mHz 512gb RAM.
>
> Thanks for any advice,
> Martin
> http://www.musicwomb.org/


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org