Topic: PHP 5.3.8-5 & memcached 1.4.5-2 = 100% CPU usage in rush hours

Last week I updated php 5.2 -> 5.3 (by the way memcached daemon).
All was OK, but When server is loaded more usres the CPU on the server achive 100% load (before the upgrade up to 10%).

Re: PHP 5.3.8-5 & memcached 1.4.5-2 = 100% CPU usage in rush hours

No idea, but not enough information

Which distro, arch, version ?
Which PHP extensions ?
MySQL ? upgrade ? slow_query ?
...

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: PHP 5.3.8-5 & memcached 1.4.5-2 = 100% CPU usage in rush hours

CentOS release 5.7(Final)kernel 2.6.18-164.11.1.1.el5 #1 SMP x86_64 GNU/Linux

memcache:
php-pecl-memcache-3.0.6-2.el5.remi
memcached-1.4.5-2.el5.remi

rpms:
php-cli-5.3.8-5.el5.remi.1
php-gd-5.3.8-5.el5.remi.1
php-pear-1.9.4-3.el5.remi
php-pecl-memcache-3.0.6-2.el5.remi
php-bcmath-5.3.8-5.el5.remi.1
php-pecl-apc-3.1.9-3.el5.remi
php-pdo-5.3.8-5.el5.remi.1
php-fpm-5.3.8-5.el5.remi.1
php-mysql-5.3.8-5.el5.remi.1
php-soap-5.3.8-5.el5.remi.1
php-5.3.8-5.el5.remi.1
php-mbstring-5.3.8-5.el5.remi.1
php-mcrypt-5.3.8-5.el5.remi.1
php-common-5.3.8-5.el5.remi.1
php-snmp-5.3.8-5.el5.remi.1
php-xml-5.3.8-5.el5.remi.1
php-devel-5.3.8-5.el5.remi.1

MySQL:
mysqlclient15-5.0.67-1.el5.remi
php-mysql-5.3.8-5.el5.remi.1
mysql-libs-5.5.16-1.el5.remi

MySQL is running on 2'nd box:
mysqlclient15-5.0.67-1.el5.remi
mysql-server-5.5.16-1.el5.remi
mysql-5.5.16-1.el5.remi
mysql-libs-5.5.16-1.el5.remi
php-mysql-5.3.8-5.el5.remi.1




Mysql working without problems. No long-time queries in slow-log. Problem started after upgrade php + mysql + memcache to latest version.

Without memcache I have'nt problem - only mysql server work harder. But when memcached id turned on CPU achive 100%, and php send errors to log file (time out, connection reset etc.)

Trace syscalls shows, that php is waiting on memcache (propably for send data to server)
Memcached has many free connection and free memory.



cat /etc/sysconfig/memcached
PORT="11211"
USER="memcached"
MAXCONN="1024"
CACHESIZE="2048"
OPTIONS=""




MySQL extensions:
Zend Memory Manager => enabled
IPv6 Support => enabled
apc.enabled => On => On
BCMath support => enabled
Calendar support => enabled
ctype functions => enabled
cURL support => enabled
date/time support => enabled
DOM/XML => enabled
HTML Support => enabled
XPath Support => enabled
XPointer Support => enabled
Schema Support => enabled
RelaxNG Support => enabled
Regex Library => Bundled library enabled
EXIF Support => enabled
fileinfo support => enabled
Input Validation and Filtering => enabled
FTP support => enabled
GD Support => enabled
FreeType Support => enabled
T1Lib Support => enabled
GIF Read Support => enabled
GIF Create Support => enabled
JPEG Support => enabled
PNG Support => enabled
WBMP Support => enabled
XPM Support => enabled
XBM Support => enabled
GetText Support => enabled
gmp support => enabled
hash support => enabled
iconv support => enabled
json support => enabled
libXML streams => enabled
Multibyte Support => enabled
Multibyte (japanese) regex support => enabled
mcrypt support => enabled
mcrypt_filter support => enabled
memcache support => enabled
MySQL Support => enabled
MysqlI Support => enabled
OpenSSL support => enabled
pcntl support => enabled
PCRE (Perl Compatible Regular Expressions) Support => enabled
PDO support => enabled
PDO Driver for MySQL => enabled
PDO Driver for SQLite 3.x => enabled
Phar: PHP Archive support => enabled
Phar-based phar archives => enabled
Tar-based phar archives => enabled
ZIP-based phar archives => enabled
gzip compression => enabled
bzip2 compression => enabled
Native OpenSSL support => enabled
Reflection => enabled
Session Support => enabled
shmop support => enabled
Simplexml support => enabled
Schema support => enabled
Soap Client => enabled
Soap Server => enabled
soap.wsdl_cache_enabled => 1 => 1
Sockets Support => enabled
SPL support => enabled
Dynamic Library Support => enabled
Tokenizer Support => enabled
WDDX Support => enabled
WDDX Session Serializer => enabled
XMLReader => enabled
XMLWriter => enabled
XSL => enabled
EXSLT => enabled
Zip => enabled
ZLib Support => enabled