[rlug] php-fpm moare
Catalin(ux) M. BOIE
catab at embedromix.ro
Sun Jun 3 16:51:12 EEST 2018
Salut!
Ruleaza:
strace -o x.strace -s2000 -tt -f `ps ax|grep fpm|awk '{ print " -p" $1 }'`
Si apoi analizeaza x.strace. Foarte posibil sa gasesti acolo motivul.
Succes!
> Salut,
>
> De cateva zile ma bat cu urmatoare chestie, si nu mai stiu pe unde sa sap:
> Pe un nas qnap, am cu docker-compose un nextcloud ( fisierul e aici:
> https://github.com/nextcloud/docker/issues/114#issuecomment-326831360 ).
> Acum cam o saptamana am mutat nas-ul in alta retea, cu aceleasi
> subnet-uri,
> si de atunci container-ul care tine nextcloud-ul propriu-zis (cu php-fpm)
> porneste, merge cateva secunde, poate chiar un minut, si apoi moare subit.
> Si nu reusesc sa inteleg cine omoara master-ul.
> Am setat tot ce am gasit de loging pe debug, si pentru master si pentru
> pool, dar tot ce scrie in log e asta:
>
> [30-May-2018 18:42:17.005789] DEBUG: pid 1, fpm_scoreboard_init_main(),
> line 40: got clock tick '100'
> [30-May-2018 18:42:17.005995] DEBUG: pid 1,
> fpm_socket_af_inet_listening_socket(), line 321: Found address for ::,
> socket opened on ::
> [30-May-2018 18:42:17.006031] DEBUG: pid 1, fpm_event_init_main(), line
> 337: event module is epoll and 11 fds have been reserved
> [30-May-2018 18:42:17.006057] NOTICE: pid 1, fpm_init(), line 85: fpm is
> running, pid 1
> [30-May-2018 18:42:17.006899] DEBUG: pid 1, fpm_children_make(), line 421:
> [pool www] child 25 started
> [30-May-2018 18:42:17.007815] DEBUG: pid 1, fpm_children_make(), line 421:
> [pool www] child 26 started
> [30-May-2018 18:42:17.007891] DEBUG: pid 1, fpm_event_loop(), line 366:
> 6000 bytes have been reserved in SHM
> [30-May-2018 18:42:17.007908] NOTICE: pid 1, fpm_event_loop(), line 367:
> ready to handle connections
> [30-May-2018 18:42:18.008960] DEBUG: pid 1,
> fpm_pctl_perform_idle_server_maintenance(), line 379: [pool www] currently
> 0 active children, 2 spare children, 2 running children. Spawning rate 1
> [30-May-2018 18:42:19.010040] DEBUG: pid 1,
> fpm_pctl_perform_idle_server_maintenance(), line 379: [pool www] currently
> 0 active children, 2 spare children, 2 running children. Spawning rate 1
> [30-May-2018 18:42:20.011121] DEBUG: pid 1,
> fpm_pctl_perform_idle_server_maintenance(), line 379: [pool www] currently
> 0 active children, 2 spare children, 2 running children. Spawning rate 1
> [30-May-2018 18:42:21.011453] DEBUG: pid 1,
> fpm_pctl_perform_idle_server_maintenance(), line 379: [pool www] currently
> 0 active children, 2 spare children, 2 running children. Spawning rate 1
> [30-May-2018 18:42:22.012523] DEBUG: pid 1,
> fpm_pctl_perform_idle_server_maintenance(), line 379: [pool www] currently
> 0 active children, 2 spare children, 2 running children. Spawning rate 1
> [30-May-2018 18:42:23.013603] DEBUG: pid 1,
> fpm_pctl_perform_idle_server_maintenance(), line 379: [pool www] currently
> 0 active children, 2 spare children, 2 running children. Spawning rate 1
> [30-May-2018 18:42:24.014683] DEBUG: pid 1,
> fpm_pctl_perform_idle_server_maintenance(), line 379: [pool www] currently
> 0 active children, 2 spare children, 2 running children. Spawning rate 1
> [30-May-2018 18:42:25.015768] DEBUG: pid 1,
> fpm_pctl_perform_idle_server_maintenance(), line 379: [pool www] currently
> 0 active children, 2 spare children, 2 running children. Spawning rate 1
> [30-May-2018 18:42:26.016854] DEBUG: pid 1,
> fpm_pctl_perform_idle_server_maintenance(), line 379: [pool www] currently
> 0 active children, 2 spare children, 2 running children. Spawning rate 1
>
> Setarile relevante pentru log sunt:
> [global]
> log_level = debug
> error_log = log/php-fpm.log
> [www]
> catch_workers_output = yes
> php_flag[display_errors] = on
> php_admin_value[error_log] = log/php-fpm.log
> php_admin_flag[log_errors] = on
>
> Toate celelalte containere merg bine-mersi.
> Aveti vreo idee pe unde as mai putea sa sap? Macar sa aflu de ce moare
> master-ul...
>
> Merci.
> --
> Beware of programmers who carry screwdrivers.
> _______________________________________________
> RLUG mailing list
> RLUG at lists.lug.ro
> http://lists.lug.ro/mailman/listinfo/rlug_lists.lug.ro
>
--
Catalin(ux) M. BOIE
http://kernel.embedromix.ro/
https://rocketgit.com/
More information about the RLUG
mailing list