Thread: Multiple httpd

    #1
  1. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    2,675
    Rep Power
    171

    Multiple httpd


    Hi

    Why do I have so many httpd COMMANDS?

    Code:
    Processes: 78 total, 4 running, 74 sleeping, 351 threads                                                                                           14:20:34
    Load Avg: 0.96, 0.90, 0.85  CPU usage: 52.0% user, 12.0% sys, 36.0% idle     SharedLibs: 4232K resident, 11M data, 0B linkedit.
    MemRegions: 33827 total, 1208M resident, 21M private, 469M shared. PhysMem: 712M wired, 1611M active, 1046M inactive, 3369M used, 726M free.
    VM: 191G vsize, 1043M framework vsize, 99651(0) pageins, 94(0) pageouts. Networks: packets: 951087/180M in, 110163/35M out.
    Disks: 137196/1980M read, 149970/4674M written.
    
    PID   COMMAND      %CPU TIME     #TH  #WQ  #POR #MREGS RPRVT  RSHRD  RSIZE  VPRVT  VSIZE  PGRP PPID STATE    UID  FAULTS    COW     MSGSENT    MSGRECV
    9511  top          10.3 00:01.25 1/1  0    24   33     1336K  264K   1916K  17M    2378M  9511 8867 running  0    7751+     55      721730+    360832+
    9451  mysqld       0.0  00:00.19 16   0    70   103    31M    3736K  35M    78M    2482M  9028 9067 sleeping 74   9218      241     271        126 
    9254  proftpd      0.0  00:00.00 1    0    8    40     840K   2084K  532K   18M    2384M  9254 1    sleeping 1    161       10      18         9 
    9067  sh           0.0  00:00.06 1    0    14   27     312K   1028K  916K   9676K  2379M  9028 1    sleeping 0    3905      2099    86         43 
    9026  httpd        0.0  00:00.01 1    0    12   420    880K   22M    3704K  2708K  2412M  8792 8792 sleeping 1    1083      165     39         16 
    9025  WebProcess   0.0  00:00.32 8    2    114  140    6240K  17M    16M    297M   3729M  5932 5932 sleeping 501  7122      269     9313       4228 
    8942  httpd        0.0  00:00.01 1    0    12   420    844K   22M    3748K  2708K  2412M  8792 8792 sleeping 1    1097      168     39         16 
    8941  httpd        0.0  00:00.01 1    0    12   420    888K   22M    3712K  2716K  2412M  8792 8792 sleeping 1    1079      164     39         16 
    8940  httpd        0.0  00:00.01 1    0    12   420    912K   22M    3720K  2712K  2412M  8792 8792 sleeping 1    1098      166     39         16 
    8938  mdworker     0.0  00:00.07 3    1    52   67     1692K  8484K  7140K  23M    2409M  8938 1    sleeping 89   2557      156     1056       468 
    8906  vim          0.0  00:00.02 1    0    17   37     532K   244K   1700K  11M    2381M  8906 193  sleeping 0    544       54      121        55 
    8867  bash         0.0  00:00.05 1    0    17   25     384K   856K   1056K  17M    2378M  8867 8853 sleeping 0    2270      505     310        127 
    8853  bash         0.0  00:00.08 1    0    17   26     1476K  856K   2176K  10M    2379M  8853 8851 sleeping 501  1290      286     128        56 
    8851  login        0.0  00:00.65 1    0    22   54     476K   312K   1612K  11M    2379M  8851 150  sleeping 0    621       117     280        129 
    8848  httpd        0.0  00:00.01 1    0    12   420    860K   22M    3824K  2728K  2412M  8792 8792 sleeping 1    1107      168     39         16 
    8846  httpd        0.0  00:00.01 1    0    12   420    848K   22M    3856K  2680K  2412M  8792 8792 sleeping 1    1113      169     39         16 
    8802  httpd        0.0  00:00.01 1    0    12   420    852K   22M    3720K  2720K  2412M  8792 8792 sleeping 1    1083      168     39         16 
    8801  httpd        0.0  00:00.01 1    0    12   420    1060K  22M    5280K  2640K  2412M  8792 8792 sleeping 1    1488      196     39         16 
    8800  httpd        0.0  00:00.01 1    0    12   420    888K   22M    3796K  2720K  2412M  8792 8792 sleeping 1    1111      164     39         16 
    8799  httpd        0.0  00:00.02 1    0    12   420    1172K  22M    5648K  2888K  2412M  8792 8792 sleeping 1    1616      202     39         16 
    8797  httpd        0.0  00:00.00 1    0    11   410    584K   21M    1092K  744K   2407M  8792 8792 sleeping 1    347       112     32         14 
    8792  httpd        0.0  00:00.12 1    0    13   418    328K   22M    10M    1272K  2412M  8792 1    sleeping 0    3133      348     51         22 
    7062  Image Captur 0.0  00:00.19 2    1    95   70     2452K  8440K  6900K  29M    2678M  7062 100  sleeping 501  2672      177     3143       1510 
    7060  PTPCamera    0.0  00:00.16 4    1    95   83     2060K  8460K  6764K  33M    2690M  7060 100  sleeping 501  2324      183     5209       2608
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Oct 2009
    Location
    Nebraska, USA
    Posts
    875
    Rep Power
    275
    they aren't necessarily, "COMMANDS"..they are processes. and in this case, you will have 1 httpd process that is the "main" process..and the rest of the other httpd processes are "workers".

    You should be able to control the number of worker processes in your httpd-mpm.conf file for XAMPP [assuming you are still using XAMPP] by changing the numbers for
    Code:
        StartServers 
        MinSpareServers 
        MaxSpareServers

IMN logo majestic logo threadwatch logo seochat tools logo