Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2003
    Location
    TeleCity 2, Amsterdam
    Posts
    62

    Every http-process takes 20MB!

    All http-processes seem to take 16M/20M. How can this be? Anything wrong with my

    apache-configuration? All EV1Servers.net says is: "You apache config is not optimized".

    Code:
      3:54pm  up  5:36,  1 user,  load average: 0.49, 1.33, 4.30
    143 processes: 140 sleeping, 3 running, 0 zombie, 0 stopped
    CPU states:  5.5% user,  5.1% system,  0.0% nice, 89.3% idle
    Mem:   506028K av,  489048K used,   16980K free,       0K shrd,   31616K buff
    Swap: 1020116K av,   32596K used,  987520K free                  242492K cached
    
      PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
     3766 apache    15   0 22576  21M 17596 S     0.0  4.3   0:03 httpd
     3914 apache    15   0 21752  20M 15720 S     0.1  4.1   0:03 httpd
     3906 apache    15   0 21592  20M 15828 S     0.3  4.1   0:03 httpd
     3762 apache    15   0 21480  20M 15880 S     0.1  4.0   0:03 httpd
     3389 apache    15   0 21452  20M 15888 S     0.0  4.0   0:03 httpd
    30011 apache    15   0 21384  20M 18620 S     0.1  4.0   0:00 httpd
     3913 apache    15   0 21300  20M 15896 S     0.0  4.0   0:03 httpd
     3905 apache    15   0 21108  19M 15776 S     0.5  4.0   0:03 httpd
     3378 apache    15   0 21048  19M 15852 S     0.0  4.0   0:03 httpd
     3390 apache    15   0 20928  19M 15928 S     0.1  3.9   0:03 httpd
    29203 apache    15   0 20912  19M 15820 S     0.3  3.9   0:01 httpd
    29414 apache    15   0 20836  19M 16348 S     0.1  3.9   0:02 httpd
    29187 apache    15   0 20816  19M 16024 S     0.7  3.9   0:02 httpd
    28265 apache    15   0 20768  19M 15872 S     0.0  3.9   0:02 httpd
    29204 apache    15   0 20680  19M 16008 S     0.0  3.9   0:02 httpd
     3388 apache    15   0 20676  19M 15932 S     0.0  3.9   0:03 httpd
     3386 apache    15   0 20596  19M 15888 S     0.0  3.9   0:03 httpd
     3765 apache    15   0 20560  19M 15960 S     0.1  3.9   0:03 httpd
    29202 apache    15   0 20456  19M 16128 S     0.0  3.8   0:01 httpd
     2332 mysql     15   0 22156  19M  3560 S     0.0  3.8   0:03 mysqld
     2334 mysql     15   0 22156  19M  3560 S     0.0  3.8   0:00 mysqld
     2335 mysql     15   0 22156  19M  3560 S     0.0  3.8   0:05 mysqld
     2345 mysql     15   0 22156  19M  3560 S     0.0  3.8   0:31 mysqld
     2408 mysql     15   0 22156  19M  3560 S     0.0  3.8   0:31 mysqld
     2409 mysql     15   0 22156  19M  3560 S     0.0  3.8   0:30 mysqld
     2410 mysql     15   0 22156  19M  3560 S     0.0  3.8   0:30 mysqld
     7449 mysql     15   0 22156  19M  3560 S     0.0  3.8   0:25 mysqld
     8985 mysql     15   0 22156  19M  3560 S     0.0  3.8   0:20 mysqld
    14514 mysql     15   0 22156  19M  3560 S     0.0  3.8   0:16 mysqld
    19513 mysql     15   0 22156  19M  3560 S     0.0  3.8   0:13 mysqld
    22166 mysql     15   0 22156  19M  3560 S     0.0  3.8   0:10 mysqld
    22167 mysql     15   0 22156  19M  3560 S     0.0  3.8   0:09 mysqld
    31004 mysql     15   0 22156  19M  3560 S     0.0  3.8   0:02 mysqld
    Code:
    Apache Server Status for www.*.com
    Server Version: Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_gzip/1.3.19.1a mod_fastcgi/2.2.10 
    
    mod_jk/1.2.0 mod_perl/1.24_01 PHP/4.3.1 FrontPage/5.0.2 mod_ssl/2.8.12 OpenSSL/0.9.6b
    Server Built: Apr 9 2003 03:25:09
    
    --------------------------------------------------------------------------------
    Current Time: Sunday, 02-May-2004 15:52:49 CEST
    Restart Time: Sunday, 02-May-2004 10:27:05 CEST
    Parent Server Generation: 1 
    Server uptime: 5 hours 25 minutes 44 seconds
    Total accesses: 178019 - Total Traffic: 1.4 GB
    CPU Usage: u46.41 s9.52 cu43.99 cs12.44 - .575% CPU load
    9.11 requests/sec - 73.9 kB/second - 8.1 kB/request
    17 requests currently being processed, 6 idle servers
    Code:
    Process lijst 
      ID   Gebruiker   Host   Database    Commando   Tijd   Status   SQL-query  
     stop proces   23423   root   localhost   mysql   Query   0   ---   SHOW PROCESSLIST
    Code:
    ServerType standalone
    ServerRoot /etc/httpd
    PidFile /var/run/httpd.pid
    ScoreBoardFile /var/run/httpd.scoreboard
    Timeout 9
    KeepAlive On
    MaxKeepAliveRequests 60
    KeepAliveTimeout 4
    MinSpareServers 5
    MaxSpareServers 10
    StartServers 5
    MaxClients 512
    MaxRequestsPerChild 1000
    I have totally no idea why all those processes take about 16M/20M. And there are even less processes listed on MySQL-processlist (phpMyAdmin) and Apache-processlist (/server-status Extended-Status).

  2. #2
    Join Date
    Feb 2002
    Location
    Vestal, NY
    Posts
    1,381
    I would try increasing your MinSpareServers and MaxSpareServers as well as StartServers. Play around and see if it helps. You can also add these directives:

    RLimitMEM
    RLimitCPU

    Look them up at apache.org for more details.
    H4Y Technologies LLC .. Since 2001!!
    "Smarter, Cheaper, Faster" - SMB, Reseller, VPS, Dedicated, Colo hosting done right.

    ZERO PACKETLOSS, ZERO DOWNTIME Dedicated and Colo - USA: IA, CA, NC, OR, NV
    **http://h4y.us** **http://iwfhosting.net**
    Voice: (866)435-5642. *** askus at host4yourself d0t com

  3. #3
    Join Date
    Nov 2003
    Location
    TeleCity 2, Amsterdam
    Posts
    62
    Thanks, but it didn't help much changing RLimitMEM. Changing other vars didn't help either.

    Code:
     2332 mysql     15   0 38372  35M  4820 S     0.0  7.1   0:08 mysqld
     2334 mysql     15   0 38372  35M  4820 S     0.0  7.1   0:00 mysqld
     2335 mysql     15   0 38372  35M  4820 S     0.0  7.1   0:12 mysqld
     2345 mysql     15   0 38372  35M  4820 S     0.0  7.1   1:01 mysqld
     2408 mysql     15   0 38372  35M  4820 S     0.0  7.1   1:02 mysqld
     2409 mysql     15   0 38372  35M  4820 S     0.0  7.1   1:03 mysqld
     2410 mysql     15   0 38372  35M  4820 S     0.0  7.1   1:00 mysqld
     7449 mysql     15   0 38372  35M  4820 S     0.0  7.1   0:54 mysqld
     8985 mysql     15   0 38372  35M  4820 S     0.0  7.1   0:49 mysqld
    14514 mysql     15   0 38372  35M  4820 S     0.0  7.1   0:47 mysqld
    19513 mysql     15   0 38372  35M  4820 S     0.0  7.1   0:42 mysqld
    22166 mysql     16   0 38372  35M  4820 S     1.3  7.1   0:39 mysqld
    22167 mysql     15   0 38372  35M  4820 S     0.0  7.1   0:39 mysqld
    31004 mysql     15   0 38372  35M  4820 S     0.0  7.1   0:32 mysqld
    How come it gives all these MySQL-processes? While the MySQL-statuslist in phpMyAdmin as user 'root' is just empty? (Just show processlist)
    Last edited by DennisCitus; 05-02-2004 at 03:18 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •