Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Nobody High CPU HTTPD

Discussion in 'EasyApache' started by mythosis, Jul 25, 2018.

  1. mythosis

    mythosis Member

    Joined:
    Oct 29, 2013
    Messages:
    14
    Likes Received:
    3
    Trophy Points:
    3
    cPanel Access Level:
    Reseller Owner
    Hi All,

    Currently we are experiencing an issue of CPU being consumed by the httpd process.

    upload_2018-7-26_13-57-27.png

    I have read multiple posts about this an how to check process threads etc but so far I haven't been able to find a solution. The server iteslf has EA4, Configserver Firewall/Scanner/Mailscanner FE and is running cloudlinix 7.5. LVE Manager shows that no users are over limits and looks normal. I'm assuming that the problem is with Apache not closing threads properly. (guess?)

    When I do an Strace I get

    upload_2018-7-26_13-59-59.png

    The munin process graph looks like: (this is me manually killing processes just to have them start up again soon after and continue to consume resources.

    upload_2018-7-26_14-1-50.png

    The EasyApache 4 packages are ....
    Code:
    Apache 2.4
    config
    config-runtime
    mod_authn_dbd
    mod_authn_socache
    mod_buffer
    mod_bw
    mod_bwlimited
    mod_cache
    mod_cache_disk
    mod_cache_socache
    mod_cgid
    mod_charset_lite
    mod_cloudflare
    mod_cpanel
    mod_dav
    mod_dav_fs
    mod_dbd
    mod_deflate
    mod_env
    mod_expires
    mod_file_cache
    mod_headers
    mod_hostinglimits
    mod_http2
    mod_mpm_worker
    mod_proxy
    mod_proxy_fcgi
    mod_proxy_http
    mod_proxy_wstunnel
    mod_ratelimit
    mod_reqtimeout
    mod_request
    mod_security2
    mod_session
    mod_socache_memcache
    mod_ssl
    mod_suexec
    mod_suphp
    mod_unique_id
    mod_version
    tools
    PHP 5.3
    build
    libc-client
    pear
    php-bcmath
    php-bz2
    php-calendar
    php-cli
    php-common
    php-curl
    php-dba
    php-devel
    php-enchant
    php-exif
    php-fileinfo
    php-fpm
    php-ftp
    php-gd
    php-gettext
    php-gmp
    php-iconv
    php-imap
    php-intl
    php-ioncube
    php-ldap
    php-litespeed
    php-mbstring
    php-mcrypt
    php-mysqlnd
    php-odbc
    php-pdo
    php-pgsql
    php-posix
    php-process
    php-pspell
    php-snmp
    php-soap
    php-sockets
    php-sourceguardian
    php-tidy
    php-xml
    php-xmlrpc
    php-zendguard
    php-zip
    runtime
    PHP 5.4
    build
    libc-client
    pear
    php-bcmath
    php-bz2
    php-calendar
    php-cli
    php-common
    php-curl
    php-dba
    php-devel
    php-enchant
    php-exif
    php-fileinfo
    php-fpm
    php-ftp
    php-gd
    php-gettext
    php-gmp
    php-iconv
    php-imap
    php-intl
    php-ioncube
    php-ldap
    php-litespeed
    php-mbstring
    php-mcrypt
    php-mysqlnd
    php-odbc
    php-pdo
    php-pgsql
    php-posix
    php-process
    php-pspell
    php-snmp
    php-soap
    php-sockets
    php-sourceguardian
    php-tidy
    php-xml
    php-xmlrpc
    php-zendguard
    php-zip
    runtime
    PHP 5.5
    build
    libc-client
    pear
    php-bcmath
    php-bz2
    php-calendar
    php-cli
    php-common
    php-curl
    php-dba
    php-devel
    php-enchant
    php-exif
    php-fileinfo
    php-fpm
    php-ftp
    php-gd
    php-gettext
    php-gmp
    php-iconv
    php-imap
    php-intl
    php-ioncube
    php-ldap
    php-litespeed
    php-mbstring
    php-mcrypt
    php-mysqlnd
    php-odbc
    php-pdo
    php-pgsql
    php-posix
    php-process
    php-pspell
    php-snmp
    php-soap
    php-sockets
    php-sourceguardian
    php-tidy
    php-xml
    php-xmlrpc
    php-zendguard
    php-zip
    runtime
    PHP 5.6
    build
    libc-client
    pear
    php-bcmath
    php-bz2
    php-calendar
    php-cli
    php-common
    php-curl
    php-dba
    php-devel
    php-enchant
    php-exif
    php-fileinfo
    php-fpm
    php-ftp
    php-gd
    php-gettext
    php-gmp
    php-iconv
    php-imap
    php-intl
    php-ioncube10
    php-ldap
    php-litespeed
    php-mbstring
    php-mcrypt
    php-mysqlnd
    php-odbc
    php-pdo
    php-pgsql
    php-posix
    php-process
    php-pspell
    php-snmp
    php-soap
    php-sockets
    php-sourceguardian
    php-tidy
    php-xml
    php-xmlrpc
    php-zendguard
    php-zip
    runtime
    PHP 7.0
    build
    libc-client
    pear
    php-bcmath
    php-bz2
    php-calendar
    php-cli
    php-common
    php-curl
    php-dba
    php-devel
    php-enchant
    php-exif
    php-fileinfo
    php-fpm
    php-ftp
    php-gd
    php-gettext
    php-gmp
    php-iconv
    php-imap
    php-intl
    php-ioncube10
    php-ldap
    php-litespeed
    php-mbstring
    php-mcrypt
    php-mysqlnd
    php-odbc
    php-opcache
    php-pdo
    php-pgsql
    php-posix
    php-process
    php-pspell
    php-snmp
    php-soap
    php-sockets
    php-tidy
    php-xml
    php-xmlrpc
    php-zip
    runtime
    PHP 7.1
    build
    libc-client
    pear
    php-bcmath
    php-bz2
    php-calendar
    php-cli
    php-common
    php-curl
    php-dba
    php-devel
    php-enchant
    php-exif
    php-fileinfo
    php-fpm
    php-ftp
    php-gd
    php-gettext
    php-gmp
    php-iconv
    php-imap
    php-intl
    php-ioncube10
    php-ldap
    php-litespeed
    php-mbstring
    php-mcrypt
    php-mysqlnd
    php-odbc
    php-opcache
    php-pdo
    php-pgsql
    php-posix
    php-process
    php-pspell
    php-snmp
    php-soap
    php-sockets
    php-tidy
    php-xml
    php-xmlrpc
    php-zip
    runtime
    PHP 7.2
    build
    libc-client
    pear
    php-bcmath
    php-bz2
    php-calendar
    php-cli
    php-common
    php-curl
    php-dba
    php-devel
    php-enchant
    php-exif
    php-fileinfo
    php-fpm
    php-ftp
    php-gd
    php-gettext
    php-gmp
    php-iconv
    php-imap
    php-intl
    php-ldap
    php-litespeed
    php-mbstring
    php-mysqlnd
    php-odbc
    php-opcache
    php-pdo
    php-pgsql
    php-posix
    php-process
    php-pspell
    php-snmp
    php-soap
    php-sockets
    php-tidy
    php-xml
    php-xmlrpc
    php-zip
    runtime
    Others
    apr
    apr-util
    apr-util-openssl
    brotli
    cpanel-tools
    documentroot
    libcurl
    libmcrypt
    libnghttp2
    libtidy
    libxml2
    modsec-sdbm-util
    nghttp2
    openssl
    openssl-devel
    php-cli
    php-cli-lsphp
    profiles-cpanel
    
    I'm not really sure where to go to from here. Its a new server with only a few accounts on there. At first I thought that it may be that Munin or WHM were falsely reporting the usage due to a bug or some such but then sites were reporting Resource errors.

    Any assistance would be greatly appreciated.
     
    #1 mythosis, Jul 25, 2018
    Last edited by a moderator: Jul 26, 2018
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,367
    Likes Received:
    1,856
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. mythosis

    mythosis Member

    Joined:
    Oct 29, 2013
    Messages:
    14
    Likes Received:
    3
    Trophy Points:
    3
    cPanel Access Level:
    Reseller Owner
    Hi there thanks Michael yes I have used that link to troubleshoot but I was unable to locate the issue. After extensive forum/google searching we reached out to our supplier who then contacted cPanel.

    Solution: In our case it was a case of the Apache module mod_cpanel taking up the CPU resources. We have been instructed to recompile Apache without this mod and monitor performance. So far so good.

    I am posting here to help someone else if the encounter the same situation after enabling the Apache Cpanel Mod.

    Question: Can you please explain what this module was intended for, was this created by cPanel or Apache? Thanks in advance.
     
  4. mythosis

    mythosis Member

    Joined:
    Oct 29, 2013
    Messages:
    14
    Likes Received:
    3
    Trophy Points:
    3
    cPanel Access Level:
    Reseller Owner
    Update: 12 hours later and can confirm server is stable. Thanks. (different server same fix)

    upload_2018-7-31_10-42-42.png upload_2018-7-31_10-43-22.png
     
  5. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    728
    Likes Received:
    248
    Trophy Points:
    93
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    mythosis and cPanelMichael like this.
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,367
    Likes Received:
    1,856
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    There's also an internal case open to track reports of mod_cpanel leading to excessive CPU usage. You can follow the progress of the internal case on the following thread:

    mod_cpanel CPU usage

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    mythosis likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice