[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] web.cache VERRY big



Thanx Will for your advise.

One more questions.
When I do this will the files web.log and web.log.?.gz be created for EVERY
site ?
(I need them for webalizer)

Regards,

Steven Depuydt

-----Oorspronkelijk bericht-----
Van: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]Namens Will DeHaan
Verzonden: dinsdag 27 november 2001 18:00
Aan: cobalt-users@xxxxxxxxxxxxxxx
Onderwerp: Re: [cobalt-users] web.cache VERRY big


"Steven Depuydt - BeNe.WS" wrote:
>
> Hello,
>
> On one of our domains in the log directory we have a "web.cache" file with
a
> size of 95.5Mb and a "web.cache.new" file with a size of 95.57Mb
>
> I know that they are generated by logrote in cron.daily because every
> morning when logrotate is running I got a message by e-mail "The cobalt
> server is out of memory" (I have seen this when TOP was running)
>
> I am running webalizer for statistics so I don't need the stats program of
> my RAQ3i.
>
> Is there a way to DISABLE the generation of these files ??
> I only need the web.log & the web.log.?.gz files to generate the stats
with
> webalizer.
>
> Regards,
>
> Steven Depuydt

The cache file is generated by analog when invoked from
/usr/local/sbin/split_logs which is invoked from
/etc/logrotate.d/apache.

You do want split_logs to sort through /var/log/httpd/access and create
all the per-site logs as it does now, but you don't want it to invoke
analog.

There are a few ways of resolving this problem.

*** The following suggestions are unsupported and are issued as free,
friendly, useful help ***

You could disable analog, the application and create a dummy in its
place:

  mv /usr/local/sbin/analog /usr/local/sbin/analog.disabled
  echo "#!/bin/sh" > /usr/local/sbin/analog
  echo "exit 0" >> /usr/local/sbin/analog
  chmod +x /usr/local/sbin/analog

Now be aware that ALL built-in site and server Cobalt statistics will no
longer generate.  The changes listed above appear to work on one of my
development RaQs.

To undo this change, should it cause a problem a few months down the
road:

  mv /usr/local/sbin/analog.disabled /usr/local/sbin/analog

...Remember that any OS Update package files that update analog will
overwrite /usr/local/sbin/analog so you'd have to reapply this hack.


	-- Will

--
Will DeHaan
Software Engineer              will.dehaan@xxxxxxx
Sun Cobalt Server Appliances.  Sun Microsystems, Inc.

_______________________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To Subscribe or Unsubscribe, please go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users