Re: Help - stubborn 2Gb Apache log file!!
| From: | M.Stolte | Date: | Thu, 13 Jul 2000 06:43:59 +0000 |
| Subject: | Re: Help - stubborn 2Gb Apache log file!! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-6389@lists.php.net to get a copy of this message | ||
For me, this problem was fixed when going from php4 to php401p2
I did have other problems then with crashing child processes, and
am now running CVS, which is stable so far :))
Maarten
----- Original Message -----
From: Michael Teter <michael_teter@yahoo.com>
To: David Newcomb <davidn@vnvi.com>; kev <kevin.porter@fast.no>
Cc: <php-general@lists.php.net>
Sent: Wednesday, July 12, 2000 5:41 PM
Subject: Re: [PHP] Help - stubborn 2Gb Apache log file!!
> Ok, here's a bad hack way of working around your
> problem until you can fix the source of the problem.
>
> Write a shell script that does this:
>
> ---
> mv thelogpath/logfile_log thelogpath/logfile_log_old
>
> apachebinpath/httpd restart
>
> rm thelogpath/logfile_log_old
> ---
>
> You can't rm the logfile while apache is running
> because it's keeping the file open. But, you can
> rename that file without affecting processes who have
> the file open. Then you can restart the server, and
> it will naturally create a new log file. Then you can
> rm the old log file.
>
> Then put that into cron on an hour interval.
>
> Like I said, this is a hack workaround, but it should
> keep your server running without reboots until you can
> solve the real problem.
>
> Michael
>
>
> --- David Newcomb <davidn@vnvi.com> wrote:
> > Kev,
> >
> > As a work around, cos I don't know what the message
> > means, you can
> > delete the log file by doing the rm as usual then
> > restarting Apache by
> > doing:
> > /etc/rc.d/init/httpd restart
> >
> > The filesystem will not reclaim disk space until
> > there are no processes
> > using it (ie with an open file descriptor).
> > Although this does not solve your orginal problem,
> > it will help until
> > someone else does. The server interruption time will
> > be about a second!
> >
> > Hope this helps,
> > David.
> >
> >
> > ----- Original Message -----
> > From: kev <kevin.porter@fast.no>
> > To: <php-general@lists.php.net>
> > Sent: Wednesday, July 12, 2000 12:47 PM
> > Subject: [PHP] Help - stubborn 2Gb Apache log file!!
> >
> >
> > > Hi,
> > >
> > > Apache is continually writing this to my error_log
> > file until it fills
> > > up to 2Gb (the maximum for Linux):
> > >
> > >
> > > <b>Fatal error</b>: ht=081ac804 is already
> > destroyed in zend_hash.c:519
> > > in <b>Unknown</b> on line <b>0</b><br>
> > > <br>
> > > .....when I rm -rf it, it doesn't disappear from
> > the file system until I
> > > reboot. The file takes probably less than a couple
> > of hours to fill up -
> > > this is the first time I've caught it in the
> > process of filling up.
> > > Anyone know what the error message means, why HTML
> > is being output to
> > > the log file and how to cure this problem?
> > > There is no workaround to this, it fills my /usr
> > partition right up, and
> > > rebooting every couple of hours certianly isn't an
> > option.
> > > thanks,
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail:
> > php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail:
> > php-general-help@lists.php.net
> > To contact the list administrators, e-mail:
> > php-list-admin@lists.php.net
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Get Yahoo! Mail - Free email you can access from anywhere!
> http://mail.yahoo.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>