The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

apache status

Discussion in 'EasyApache' started by big_bull, Jan 8, 2010.

  1. big_bull

    big_bull Well-Known Member

    Joined:
    Nov 19, 2006
    Messages:
    150
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hello,

    When checked apache status in WHM found that same PID is assigned to many processes running by different users, will you please check the logs and let me the reason for this.

    Srv PID Acc M CPU SS Req Conn Child Slot Client VHost Request
    0-5 10156 0/3/3 _ 3.48 2 0 0.0 0.01 0.01 ***** HTTP/1.1
    0-5 10156 0/3/3 _ 2.88 1 526 0.0 0.10 0.10 *****/index_01.gif HTTP/1.1
    0-5 10156 0/3/3 _ 4.78 5 1315 0.0 0.03 0.03 ***** HTTP/1.0
    0-5 10156 0/5/5 _ 3.37 2 0 0.0 0.07 0.07 ******* HTTP/
    0-5 10156 0/2/2 _ 0.57 6 3 0.0 0.00 0.00 **** HTTP/
    0-5 10156 0/2/2 _ 0.56 5 0 0.0 0.00 0.00 **** HTTP/1.1
    0-5 10156 0/8/8 _ 3.93 0 0 0.0 0.04 0.04 ***** HTTP/1.1
    0-5 10156 2/2/2 C 4.32 1 1682 97.3 0.10 0.10 ***** HTTP/1.1
     
  2. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    I don't see a problem in the provided status output. Which MPM is Apache configured to use?

    Please provide the output of the following commands as performed via root SSH access:
    Code:
    # /usr/local/apache/bin/httpd -l
    # /usr/local/apache/bin/httpd -M
     
  3. big_bull

    big_bull Well-Known Member

    Joined:
    Nov 19, 2006
    Messages:
    150
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hi,

    But when I want to check for max CPU usage I during loaded server, I am taking PID from top command and then searches that PID in apache status so that I can check the User OR can ban IP responsible, but when such output is given it confuses, for other servers I can see single PID assigned to processes.

    root@super [~]# /usr/local/apache/bin/httpd -l
    Compiled in modules:
    core.c
    mod_authn_file.c
    mod_authn_default.c
    mod_authz_host.c
    mod_authz_groupfile.c
    mod_authz_user.c
    mod_authz_default.c
    mod_auth_basic.c
    mod_include.c
    mod_filter.c
    mod_log_config.c
    mod_logio.c
    mod_env.c
    mod_expires.c
    mod_headers.c
    mod_usertrack.c
    mod_unique_id.c
    mod_setenvif.c
    mod_proxy.c
    mod_proxy_connect.c
    mod_proxy_ftp.c
    mod_proxy_http.c
    mod_proxy_scgi.c
    mod_proxy_ajp.c
    mod_proxy_balancer.c
    mod_ssl.c
    worker.c
    http_core.c
    mod_mime.c
    mod_status.c
    mod_autoindex.c
    mod_asis.c
    mod_info.c
    mod_suexec.c
    mod_cgid.c
    mod_vhost_alias.c
    mod_negotiation.c
    mod_dir.c
    mod_actions.c
    mod_speling.c
    mod_userdir.c
    mod_alias.c
    mod_rewrite.c
    mod_so.c

    root@super [~]# /usr/local/apache/bin/httpd -M
    core_module (static)
    authn_file_module (static)
    authn_default_module (static)
    authz_host_module (static)
    authz_groupfile_module (static)
    authz_user_module (static)
    authz_default_module (static)
    auth_basic_module (static)
    include_module (static)
    filter_module (static)
    log_config_module (static)
    logio_module (static)
    env_module (static)
    expires_module (static)
    headers_module (static)
    usertrack_module (static)
    unique_id_module (static)
    setenvif_module (static)
    proxy_module (static)
    proxy_connect_module (static)
    proxy_ftp_module (static)
    proxy_http_module (static)
    proxy_scgi_module (static)
    proxy_ajp_module (static)
    proxy_balancer_module (static)
    ssl_module (static)
    mpm_worker_module (static)
    http_module (static)
    mime_module (static)
    status_module (static)
    autoindex_module (static)
    asis_module (static)
    info_module (static)
    suexec_module (static)
    cgid_module (static)
    vhost_alias_module (static)
    negotiation_module (static)
    dir_module (static)
    actions_module (static)
    speling_module (static)
    userdir_module (static)
    alias_module (static)
    rewrite_module (static)
    so_module (static)
    bwlimited_module (shared)
    php5_module (shared)
    security2_module (shared)
    Syntax OK
    root@super [~]#
     
  4. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Using the Worker MPM it is normal for the PID to be shared because this MPM utilizes different threads instead of separate processes like the Prefork MPM. If the utmost need is that of tracking resource usage I recommend using the Prefork MPM with both SuExec and SuPHP enabled.
     
Loading...

Share This Page