httpd -n ## processess

Discussion in 'General' started by strebel, Nov 2, 2011.

  1. strebel

    strebel Member

    At times when we see a server under load and struggling we see processes spawned by root with the command httpd -n 41 or some other number.

    What are these processes?

    We recently provisioned a new lsws 4.1.7 node and with 6 cores and load of 2 we are seem many httpd -n ## procs. (as if it was under load)
  2. webizen

    webizen Well-Known Member

    pls do 'httpd -h' to find out what the option '-n' do for your httpd.
  3. strebel

    strebel Member

    no httpd service.

    root@PAGE01VMW03:/home/jstrebel# which httpd
    root@PAGE01VMW03:/home/jstrebel# httpd -h
    bash: httpd: command not found
  4. mistwang

    mistwang LiteSpeed Staff

    use pstree to check who own those processes.
  5. strebel

    strebel Member

    owned by root
  6. mistwang

    mistwang LiteSpeed Staff

    It is not related to LSWS.
    You should find out what it is doing with "lsof" and "strace".
  7. strebel

    strebel Member

    Sorry, guess my next reply did not save, it is owned by litespeed

    │ └─litespeed─┬─admin_php
    │ ├─httpd
  8. mistwang

    mistwang LiteSpeed Staff

    Our lscgid should be listed as
    in "ps -ef" output, and usually only one.
    not httpd -n ##
  9. strebel

    strebel Member

    See this image:

    The httpd -n 72 process is under the litespeed thread.

    As I said, we see these from time to time when a server is really under load, but in this case the load on a 8 core machine is ~2 and these are spawning 2 or 3 at a time.
  10. mistwang

    mistwang LiteSpeed Staff

    That's normal for PHP suEXEC, it will change user ID and execute lsphp5, usually it is not visible in ps, nothing to worry about.

Share This Page