leaking memory nginx 1.8.0
Frederik Nosi
frederik.nosi at postecom.it
Wed Jul 8 14:33:36 UTC 2015
Hi,
On 07/08/2015 09:44 AM, evgeni22 wrote:
> ok the leaking fixed , i will past here for database for other users:
>
> that was in my php-fpm.conf
>
> pm = ondemand
> pm.max_children = 10
> pm.process_idle_timeout = 60
> pm.max_requests = 1000
>
> =============================
> after i change it to this conf the leaking stoped.
>
> pm = dynamic
> pm.max_children = 10
> pm.start_servers = 5
> pm.min_spare_servers = 5
> pm.max_spare_servers = 10
> pm.max_requests = 500
Very probably that last setting helped you, from the documentation:
pm.max_requests int
The number of requests each child process should execute before
respawning. This can be useful to work around memory leaks in 3rd party
libraries. For endless request processing specify '0'. Equivalent to
PHP_FCGI_MAX_REQUESTS. Default value: 0.
IMHO It's a bandaid, but works.
>
> i only not understand why pm = ondemand doing the leaking, does algorithem
> in nginx not stable or it php issue ?
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,260106,260132#msg-260132
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
More information about the nginx
mailing list