mythosis

Member
Oct 29, 2013
15
4
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.
 
Last edited by a moderator:

mythosis

Member
Oct 29, 2013
15
4
3
cPanel Access Level
Reseller Owner
Hello @mythosis,

The following thread is a good place to start when troubleshooting high loads:

Troubleshooting high server loads on Linux servers

Let me know if this helps.

Thank you.
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,883
2,256
463
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.
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.
 
  • Like
Reactions: mythosis