On Thu, 20 Jan 2000, Cameron Just wrote:

> Hi,
> 
> I am having a problem with our server. Our daily logfiles are approximately 9.5 Meg 
>(compressed).
> I am trying to get some sort of logfile that will just keep a 24 month 'Monthly 
>Report'
> and a 30 day 'Daily Report'.
> 
> It seems the cachefile causes analog to run out of memory after about 2 months.
> http://www.uq.edu.au/stats/analog/dingo/index.html?&year=1999
> You can see where it dies by the missing links on relavent dates.
>
> The cachefile is 68 Mb (uncompressed) when analog starts to die.
>
 
68MB doesn't sound very big to me. How do you know the problems are anything
to do with the cache file? It looks to me like it could just be something to
do with the script that's meant to be generating them.

Or if analog is running out of memory, that may not be any different whether
you're reading from cache file or original logfile. You might want to look
at the LOWMEM commands.

> Is there anything wrong with my cachefile and logfile statement?
> The OUTFILE is passed as a parameter to the analog call.
>   +O/usr/local/httpd/enhance/stats/analog/dingo/dingo_%timestamp%.html
> 
> 
> LOGFILE /usr/local/httpd/logs/access_log.0.gz
> 
> CACHEOUTFILE /usr/local/uqwww/analog/dingo/cachefile
> CACHEFILE  /usr/local/uqwww/analog/dingo/cachefile
> 
> 
> I'd prefer to keep the cachefile name as the same each time so I don't end up with a 
>directory full of them.

This won't work in newer versions of analog because it won't overwrite an
old cache file. Of course, you can write a script to store it to a temporary
name and then move it on top of the old one, but then at least it's clear
whose responsibility it is. :)

One other point: there are bugs in cache file creation in older versions of
analog in certain circumstances. I strongly recommend upgrading to 4.01.
Your old config files will (just about) still work.

-- 
Stephen Turner    [EMAIL PROTECTED]    http://www.statslab.cam.ac.uk/~sret1/
  Statistical Laboratory, 16 Mill Lane, Cambridge CB2 1SB, England
  "We can ask you to pay the full amount which you owe us if you:
   (a) become bankrupt; or (b) die." Egg Credit Card Agreement

------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe analog-help" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------

Reply via email to