[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: >2Gb Files
- From: Christopher McCrory <chrismcc pricegrabber com>
- To: "Discussion of Red Hat Enterprise Linux 3 (Taroon)" <taroon-list redhat com>
- Subject: Re: >2Gb Files
- Date: Wed, 08 Sep 2004 21:05:37 -0700
Hello...
On Tue, 2004-09-07 at 09:04, Vidyut Luther wrote:
> I've seen this happen to our apache log files all the time, the only
> quick way to fix it was to
> run logrotate based on file size, and not number of days etc. I'm
> hoping apache2 has this problem fixed, but we still use apache 1.3x
> for production.
>
> You'll notice that apache stops writing to the log file, which causes
> all your stats to go haywire.. as you get empty days etc. logrotate is
> definitely your friend, it manages old files etc, compresses em and
> all.
>
My solution from the RH7.1 days:
cat /etc/cron.d/apachelogs.cron
30 1-3,5-23 * * root /usr/sbin/logrotate /etc/logrotate.apache
/etc/logrotate.apache:
/logs/access_log /logs/error_log {
rotate 8
missingok
compress
delaycompress
size=1024M
noolddir
sharedscripts
postrotate
/bin/kill -USR1 `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null
|| true
endscript
}
#you can now use 'size=1G' also
> Only other thing I can think of is to look at the apache src, and
> recompile, like you had to back in the old days for number of open
> files, where you had to recompile the kernel.
>
>
>
>
>
>
> On Tue, 7 Sep 2004 11:38:11 -0400 (EDT), Zate Berg
> <zate superfreeway com> wrote:
> > Hi All,
> >
> > Recently had an issue with the Weblogic Plugin for apache crashing because
> > the log files got larger than 2 Gb. I thought that ext3 supported files
> > larger than 2Gb? Am I correct in assuming this is an issue with apache/WL
> > Plugin and not the OS ? How can i prove this ?
> >
> > --
> > Zate Berg
> >
> > --
> > Taroon-list mailing list
> > Taroon-list redhat com
> > http://www.redhat.com/mailman/listinfo/taroon-list
> >
--
Christopher McCrory
"The guy that keeps the servers running"
chrismcc pricegrabber com
http://www.pricegrabber.com
Let's face it, there's no Hollow Earth, no robots, and
no 'mute rays.' And even if there were, waxed paper is
no defense. I tried it. Only tinfoil works.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]