force php-fpm to release memory

84 views Asked by At

i have this config for my php-fpm

pm = dynamic
pm.max_children = 5900
pm.start_servers = 200
pm.min_spare_servers = 200
pm.max_spare_servers = 3900
pm.process_idle_timeout = 2s;
pm.max_requests = 6800

my php version is 7.4 and i use centos 7 64bit i have no problem normally but when one user import one excel with 200000 record and i import that on mysql my problem start. php use too many memory for do this work and finally it done and use 10G memory and after this work php-fpm not release that 10G memory and i should reload or restart my php-fpm why php-fpm not release memory after that job done? can i do some work manually to fix this issue?

0

There are 0 answers