Re: fpm problem
> Could it be that starting 4000 fpm processes eats up all your resources
> and starting the fpm-master process fails? Can you please check if the
> php7.2-fpm service is running?
Yes , services running...
> Can you try something like this?
>
> pm = dynamic
> pm.max_children = 250
> pm.start_servers = 25
> pm.min_spare_servers = 15
> pm.max_spare_servers = 30
fpm, 8 mb per transaction. 32g ram... I have 32G RAM. I just want to
use 24g ram.
24576/8 = 3072 (pm.max.child)
is this logic wrong?
S UID PID PPID C PRI NI RSS SZ WCHAN TTY TIME CMD
S 33 9343 594 0 80 0 5336 40706 SyS_ep ? 00:00:00 nginx
S 33 9344 594 0 80 0 5336 40706 SyS_ep ? 00:00:00 nginx
S 33 9345 594 0 80 0 5336 40706 SyS_ep ? 00:00:00 nginx
S 33 9347 594 0 80 0 5336 40706 SyS_ep ? 00:00:00 nginx
S 33 9348 594 0 80 0 5336 40706 SyS_ep ? 00:00:00 nginx
S 33 9349 594 0 80 0 5336 40706 SyS_ep ? 00:00:00 nginx
S 33 9346 594 0 80 0 6324 40706 SyS_ep ? 00:00:00 nginx
S 33 9342 594 0 80 0 7004 40772 SyS_ep ? 00:00:00 nginx
S 33 4828 4792 0 80 0 7400 87637 skb_wa ? 00:00:00 php-fpm7.2
S 33 4829 4792 0 80 0 7400 87637 skb_wa ? 00:00:00 php-fpm7.2
S 33 4830 4792 0 80 0 7400 87637 skb_wa ? 00:00:00 php-fpm7.2
S 33 4831 4792 0 80 0 7404 87637 skb_wa ? 00:00:00 php-fpm7.2
S 33 4832 4792 0 80 0 7404 87637 skb_wa ? 00:00:00 php-fpm7.2
S 33 4833 4792 0 80 0 7404 87637 skb_wa ? 00:00:00 php-fpm7.2
S 33 4834 4792 0 80 0 7404 87637 skb_wa ? 00:00:00 php-fpm7.2
S 33 4835 4792 0 80 0 7404 87637 skb_wa ? 00:00:00 php-fpm7.2
S 33 4836 4792 0 80 0 7404 87637 skb_wa ? 00:00:00 php-fpm7.2
S 33 4837 4792 0 80 0 7404 87637 skb_wa ? 00:00:00 php-fpm7.2
S 33 4838 4792 0 80 0 7404 87637 skb_wa ? 00:00:00 php-fpm7.2
S 33 4839 4792 0 80 0 7404 87637 skb_wa ? 00:00:00 php-fpm7.2
S 33 4840 4792 0 80 0 7404 87637 skb_wa ? 00:00:00 php-fpm7.2
S 33 4841 4792 0 80 0 7404 87637 skb_wa ? 00:00:00 php-fpm7.2
S 33 4842 4792 0 80 0 7404 87637 skb_wa ? 00:00:00 php-fpm7.2
S 33 4843 4792 0 80 0 7404 87637 skb_wa ? 00:00:00 php-fpm7.2
S 33 4844 4792 0 80 0 7404 87637 skb_wa ? 00:00:00 php-fpm7.2
S 33 4845 4792 0 80 0 7404 87637 skb_wa ? 00:00:00 php-fpm7.2
S 33 4846 4792 0 80 0 7404 87637 skb_wa ? 00:00:00 php-fpm7.2
S 33 4847 4792 0 80 0 7408 87637 skb_wa ? 00:00:00 php-fpm7.2
S 33 4848 4792 0 80 0 7408 87637 skb_wa ? 00:00:00 php-fpm7.2
S 33 4849 4792 0 80 0 7408 87637 skb_wa ? 00:00:00 php-fpm7.2
S 33 4850 4792 0 80 0 7408 87637 skb_wa ? 00:00:00 php-fpm7.2
On Thu, Jul 26, 2018 at 4:00 PM, Jens Sauer <jsauer65@gmail.com> wrote:
> Am Donnerstag, den 26.07.2018, 15:37 +0300 schrieb Gokan Atmaca:
>> > Can you attach your PHP-FPM configuration file and NginX virtual
>> > host
>> > section for the site?
>>
>> Hello
>>
>> Debian stable (strech).
>>
>> packages:
>> php7.2-fpm
>> 7.2.6-1+0~20180611145758.22+stretch~1.gbpe20e8b amd64
>> server-side, HTML-embedded scripting language (FPM-CGI binary)
>> nginx 1.10.3-1+deb9u1
>> all small, powerful, scalable web/proxy server
>>
>
> This php7.2-fpm package is definitely not from the stable repository.
> php7.2 is not available in stretch and the latest php7.0-fpm version
> is 7.0.30-0+deb9u1
>
>> Fpm config:
>>
>> [www]
>> user = www-data
>> group = www-data
>> listen = /run/php/php7.2-fpm.sock
>> listen.owner = www-data
>> listen.group = www-data
>> pm = dynamic
>> pm.max_children = 5000
>> pm.start_servers = 4000
>> pm.min_spare_servers = 4000
>> pm.max_spare_servers = 5000
>
> Could it be that starting 4000 fpm processes eats up all your resources
> and starting the fpm-master process fails? Can you please check if the
> php7.2-fpm service is running?
>
> Can you try something like this?
>
> pm = dynamic
> pm.max_children = 250
> pm.start_servers = 25
> pm.min_spare_servers = 15
> pm.max_spare_servers = 30
>
>> -- Nginx config:
>>
>> server {
>> listen 80;
>>
>> root /home/website/;
>> index index.php index.html index.htm;
>> client_max_body_size 256M;
>> server_name yyyyy.br
>>
>>
>>
>> location = /favicon.ico {
>> log_not_found off;
>> access_log off;
>> }
>>
>>
>> if ($http_user_agent ~* LWP::Simple|wget|libwww-perl) {
>> return 403;
>> }
>>
>>
>> location ~*
>> \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
>> expires 365d;
>> add_header Cache-Control "public";
>> }
>>
>>
>> location ~* \.(?:css|js)$ {
>> expires 1y;
>> access_log off;
>> add_header Cache-Control "public";
>> }
>>
>>
>> location / {
>> try_files $uri $uri/ /index.php?q=$uri&$args;
>>
>>
>> }
>>
>> location /my{
>> allow x.x.x.x;
>> allow x.x.x.x;
>> if ($scheme = http) { return 301 https://$host$request_uri;}
>> deny all;
>> error_page 403 error403.html;
>> try_files $uri $uri/ /index.php?q=$uri&$args;
>> }
>>
>> location ~ \.php$ {
>> try_files $uri =404;
>> fastcgi_split_path_info ^(.+\.php)(/.+)$;
>> fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
>> fastcgi_index index.php;
>> fastcgi_param SCRIPT_FILENAME $request_filename;
>> include fastcgi_params;
>> }
>>
>> gzip on;
>> gzip_disable "msie6";
>> gzip_comp_level 9;
>> gzip_min_length 1100;
>> gzip_buffers 16 8k;
>> gzip_proxied any;
>> gzip_types
>> text/plain
>> text/css
>> text/js
>> text/xml
>> text/javascript
>> application/javascript
>> application/x-javascript
>> application/json
>> application/xml
>> application/xml+rss;
>>
>> On Thu, Jul 26, 2018 at 2:56 PM, Georgi Naplatanov <gosho@oles.biz>
>> wrote:
>> > On 07/26/2018 12:45 PM, Gokan Atmaca wrote:
>> > > > What happened after you did what the warning message suggested
>> > > > to do?
>> > >
>> > > 502 gateway timeout
>> >
>> > Can you attach your PHP-FPM configuration file and NginX virtual
>> > host
>> > section for the site?
>> >
>> > Which Debian branch are you using - stable, testing or unstable?
>> > Where
>> > did you get PHP 7.2 packages from ?
>> >
>> > Kind regards
>> > Georgi
>> >
>> > > On Thu, Jul 26, 2018 at 11:50 AM, Markus Schönhaber
>> > > <debian-user@list-post.mks-mail.de> wrote:
>> > > > Gokan Atmaca, Do 26 Jul 2018 08:46:46 CEST:
>> > > >
>> > > > > we are receiving an error as below. what is the cause of the
>> > > > > problem?
>> > > > > (32g ram , 240g ssd , xeon 8 cor cpu)
>> > > > >
>> > > > > WARNING: [pool www] seems busy (you may need to increase
>> > > > > pm.start_servers, or pm.min/max_spare_servers), spawning 32
>> > > > > children,
>> > > > > there are 1 idle, and 143 total children
>> > > >
>> > > > What happened after you did what the warning message suggested
>> > > > to do?
>> > > >
>> > > > --
>> > > > Regards
>> > > > mk
>> > > >
>>
>>
> --
> Jens Sauer <jsauer65@gmail.com>
Reply to: