Re: Re: Log_Parser bug

From: Date: Mon, 30 Jun 2003 08:11:52 +0000
Subject: Re: Re: Log_Parser bug
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-17852@lists.php.net to get a copy of this message
# nicos@php.net / 2003-06-27 19:09:18 +0200: > From: "Tomas V.V.Cox" <cox@idecnet.com> > > From pear/Log_Parser/Parser.php: > > > > function parse($start = null, $end = null) > > { > > $lines = file($this->_filename); > > > > My daily access_log size is arround 700Mbs :-) I would suggest you to > > change the class for not reading so a huge ammount of data to memory. > > In the other side, in a common php installation there is a 8Mb memory > > limit, so your > > logs can't be larger than this. > > > > Btw, the xml configuration stuff is pretty nice. > > You know how big is your file you want to parse. If it's up to 700 Mbs, > thats your problem, you have to correct your php.ini so it can have enough > memory. > > I'm -1 for changing anything about reading files. What, are you seriously defending the idea that you need ~700MB RAM to process 700MB logfile? Please tell me you were just kidding! Kidding or not, what's the rationale behind refusing the idea that the file could be read and parsed line-by-line? -- If you cc me or remove the list(s) completely I'll most likely ignore your message. see http://www.eyrie.org./~eagle/faqs/questions.html

« previous php.pear.dev (#17852) next »