Welcome! Log In Create A New Profile

Advanced

PHP-FPM 100% Load

Posted by Kay 
Kay
PHP-FPM 100% Load
August 06, 2013 04:28AM
When I stress the my server for 10s the php-fpm goes to 100% and stays for
22 seconds, imagine if someone DoS attack my server will be down in a few
seconds.

If I do more threads then I have to restart php-fpm then it goes normal.

Here is the htop: http://i.imgur.com/IZaT1RW.png (High load)

PHP5-FPM Log: http://pastebin.com/PV8vgsEx - Thats the latest, some of it.

PHP Info http://pastebin.com/Qf8kvEuk

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Jérôme Loyet
Re: PHP-FPM 100% Load
August 06, 2013 04:40AM
read the logs:


1. [04-Aug-2013 01:51:14] WARNING: [pool www] server reached
max_children setting (5), consider raising it



2013/8/6 Kay <mujarrad1@rocketmail.com>

> When I stress the my server for 10s the php-fpm goes to 100% and stays for
> 22 seconds, imagine if someone DoS attack my server will be down in a few
> seconds.
>
> If I do more threads then I have to restart php-fpm then it goes normal.
>
> Here is the htop: http://i.imgur.com/IZaT1RW.png (High load)
>
> PHP5-FPM Log: http://pastebin.com/PV8vgsEx - Thats the latest, some of it.
>
> PHP Info http://pastebin.com/Qf8kvEuk
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "highload-php-en" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to highload-php-en+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

--

---
You received this message because you are subscribed to the Google Groups "highload-php-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to highload-php-en+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Re: PHP-FPM 100% Load
August 06, 2013 08:42AM
hello.
try to check with slowlog enabled

request_slowlog_timeout = 15s
slowlog = /var/log/php-slow.log

this will trace php code that is executed longer than timeout.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 69
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready