Re: Apache waiting for i/o -> optimizing

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

 



Yeah, I wanted to switch to MySQL based logs for some time now.
Right now, I could disable the access log completly, but I don't see a single CustomLog directive in my config files? Where could it be defined, or how could I disable it anyways? I'm running Debian.

h1314632:~# grep CustomLog /etc/apache2/*
/etc/apache2/apache2.conf:# a CustomLog directive (see below).
h1314632:~# grep CustomLog /etc/apache2/*/*
h1314632:~#

Regards,
Samy

Bj schrieb:
Stop logging !
of maybe filter what you're logging (static ressources,...)

For exemple, this will prevent logging ressource calls begining with /javascript/ urls : LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
SetEnvIf Request_URI "^/javascript/.*$" jscript
CustomLog logs/access_log combined env=!jscript

You can try memory caching, if somes sites are more requested than others, it might help. Or cache only some urls.

Check if you don't have a database or cgi/php code that make lots of i/o.

--
Bj




On 9/18/07, *Samuel Vogel* < samy-delux@xxxxxx <mailto:samy-delux@xxxxxx>> wrote:

    Hey,

    The delivery of my sites is getting somewhat sluggish, so I
    checked top
    and it say that 30% of my CPU time is just waiting for i/o.
    Is there anything that I can do about this, as in optimizing Apache?
    I'm thinking about caching mechnisms, but I have now over 6.000 sites
    running, so I'm not expecting caching to be useful. Am I wrong on
    this?

    Since getting an addional server is not possible right now, is
    there any
    way to ease the situation?

    Regards,
    Samy

    ---------------------------------------------------------------------
    The official User-To-User support forum of the Apache HTTP Server
    Project.
    See <URL: http://httpd.apache.org/userslist.html> for more info.
    To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
    <mailto:users-unsubscribe@xxxxxxxxxxxxxxxx>
       "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
    <mailto:users-digest-unsubscribe@xxxxxxxxxxxxxxxx>
    For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
    <mailto:users-help@xxxxxxxxxxxxxxxx>



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux