We found that the rotatelog.exe will crash apache give the following settings under httpd.conf CustomLog '|" "*Apache-Path/bin/rotatelogs.exe" "*Apache-Path/logs/backup/internet_access_%d-%m-%y.log" 86400 256M' combined The apache hanged after a 15mins stress test with 50 robots.
> The apache hanged after a 15mins stress test with 50 robots. A crash is one thing, a hang is quite another. Did the error log have anything about a child process exiting and being restarted? Secondly, what files (and sizes) had been created or written to by rotatelogs at the time the hang was detected?
Isn't the syntax wrong, it has time and size. So maybe some buffer gets full trying to write to the piped logger that is never able to init enough to read lines.
That's right about the syntax; "256M" is taken as the UTC offset. Benny, please fix the syntax (leave only the rotation time OR the rotation size) and see how that works.
Just in case there is confusion: Apache 2.2 only allows one of the two rotation rules, either size or time based, as stated by Eric and Jeff. Apache 2.4 allows to combine both, i.e. what ever happens first will rotate the file. One of the small nice things coming with 2.4. Though this ticket was opened against 2.2, so yes: please fix your config and try again. If the problem happens again, please see the questions of Jeff in Comment #1. Rainer
8 years old report and no feedback. Explanation given for 2.2.x are convincing enough for me. So closing.