Franco
Regular Pleskian
Hello,
this may be connected to or a consequence of this other thread (Issue - php7.2 php-fpm.sock file error), but I create a new one as this one seems a more specific issue.
I went back to php 7.1 and even 7.0 on some websites. However, despite this, the free swap memory keeps going down and after 1-2 hours mysql exits with failure code and I have to reboot the system. Even in presence of relatively low traffic. I have 4GB RAM and about 20 active websites running php-fpm with nginx. It was extremely stable and performing till yesterday when I have upgrade to latest MU #33 and added php7.2 (but no longer used).
When I look at the memory used (top -o %MEM) I am puzzled to see plenty of sleeping processes under those users which were upgraded to 7.2 and then downgraded back to 7.1 or 7.0. The others only have one process or none at all.
For instance:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
12167 mysql 20 0 828732 252696 12476 S 0.0 6.5 0:10.48 mysqld
11480 soge.co+ 20 0 610380 45004 6664 S 0.0 1.2 0:00.57 php-fpm
11491 soge.co+ 20 0 686436 44904 7404 S 0.0 1.2 0:00.62 php-fpm
11489 soge.co+ 20 0 685864 44788 7032 S 0.0 1.2 0:00.47 php-fpm
11485 soge.co+ 20 0 610380 44524 6672 S 0.0 1.1 0:00.61 php-fpm
11490 soge.co+ 20 0 610380 44520 6668 S 0.0 1.1 0:00.61 php-fpm
11498 soge.co+ 20 0 610380 44520 6668 S 0.0 1.1 0:00.58 php-fpm
11482 soge.co+ 20 0 610380 43684 6680 S 0.0 1.1 0:00.56 php-fpm
11503 soge.co+ 20 0 610588 43668 6656 S 0.0 1.1 0:00.55 php-fpm
11504 soge.co+ 20 0 610588 43668 6656 S 0.0 1.1 0:00.53 php-fpm
11481 soge.co+ 20 0 610380 43664 6660 S 0.0 1.1 0:00.56 php-fpm
11499 soge.co+ 20 0 610380 43660 6660 S 0.0 1.1 0:00.57 php-fpm
11502 soge.co+ 20 0 610588 43660 6620 S 0.0 1.1 0:00.56 php-fpm
11483 soge.co+ 20 0 610380 43656 6644 S 0.0 1.1 0:00.57 php-fpm
11484 soge.co+ 20 0 607816 42400 6380 S 0.0 1.1 0:00.47 php-fpm
11479 soge.co+ 20 0 606916 41084 6572 S 0.0 1.1 0:00.51 php-fpm
11497 soge.co+ 20 0 606916 41068 6588 S 0.0 1.1 0:00.51 php-fpm
11500 soge.co+ 20 0 606396 41024 6484 S 0.0 1.1 0:00.53 php-fpm
11501 soge.co+ 20 0 606396 41024 6484 S 0.0 1.1 0:00.49 php-fpm
11477 soge.co+ 20 0 682364 40236 7256 S 0.0 1.0 0:00.54 php-fpm
Each of those takes 1.1% memory and does not release it; it even grows to 1.2+. I tried to killall -u [user] for those users, but they come back and stay there. Those website and very low traffic, btw.
The result is progressive memory depletion and mysql failing.
How to clean this mess? Any idea much appreciated
Regards
this may be connected to or a consequence of this other thread (Issue - php7.2 php-fpm.sock file error), but I create a new one as this one seems a more specific issue.
I went back to php 7.1 and even 7.0 on some websites. However, despite this, the free swap memory keeps going down and after 1-2 hours mysql exits with failure code and I have to reboot the system. Even in presence of relatively low traffic. I have 4GB RAM and about 20 active websites running php-fpm with nginx. It was extremely stable and performing till yesterday when I have upgrade to latest MU #33 and added php7.2 (but no longer used).
When I look at the memory used (top -o %MEM) I am puzzled to see plenty of sleeping processes under those users which were upgraded to 7.2 and then downgraded back to 7.1 or 7.0. The others only have one process or none at all.
For instance:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
12167 mysql 20 0 828732 252696 12476 S 0.0 6.5 0:10.48 mysqld
11480 soge.co+ 20 0 610380 45004 6664 S 0.0 1.2 0:00.57 php-fpm
11491 soge.co+ 20 0 686436 44904 7404 S 0.0 1.2 0:00.62 php-fpm
11489 soge.co+ 20 0 685864 44788 7032 S 0.0 1.2 0:00.47 php-fpm
11485 soge.co+ 20 0 610380 44524 6672 S 0.0 1.1 0:00.61 php-fpm
11490 soge.co+ 20 0 610380 44520 6668 S 0.0 1.1 0:00.61 php-fpm
11498 soge.co+ 20 0 610380 44520 6668 S 0.0 1.1 0:00.58 php-fpm
11482 soge.co+ 20 0 610380 43684 6680 S 0.0 1.1 0:00.56 php-fpm
11503 soge.co+ 20 0 610588 43668 6656 S 0.0 1.1 0:00.55 php-fpm
11504 soge.co+ 20 0 610588 43668 6656 S 0.0 1.1 0:00.53 php-fpm
11481 soge.co+ 20 0 610380 43664 6660 S 0.0 1.1 0:00.56 php-fpm
11499 soge.co+ 20 0 610380 43660 6660 S 0.0 1.1 0:00.57 php-fpm
11502 soge.co+ 20 0 610588 43660 6620 S 0.0 1.1 0:00.56 php-fpm
11483 soge.co+ 20 0 610380 43656 6644 S 0.0 1.1 0:00.57 php-fpm
11484 soge.co+ 20 0 607816 42400 6380 S 0.0 1.1 0:00.47 php-fpm
11479 soge.co+ 20 0 606916 41084 6572 S 0.0 1.1 0:00.51 php-fpm
11497 soge.co+ 20 0 606916 41068 6588 S 0.0 1.1 0:00.51 php-fpm
11500 soge.co+ 20 0 606396 41024 6484 S 0.0 1.1 0:00.53 php-fpm
11501 soge.co+ 20 0 606396 41024 6484 S 0.0 1.1 0:00.49 php-fpm
11477 soge.co+ 20 0 682364 40236 7256 S 0.0 1.0 0:00.54 php-fpm
Each of those takes 1.1% memory and does not release it; it even grows to 1.2+. I tried to killall -u [user] for those users, but they come back and stay there. Those website and very low traffic, btw.
The result is progressive memory depletion and mysql failing.
How to clean this mess? Any idea much appreciated
Regards