Welcome! Log In Create A New Profile

Advanced

Re: leaking memory nginx 1.8.0

Frederik Nosi
July 08, 2015 10:34AM
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@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx


_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

leaking memory nginx 1.8.0

evgeni22 July 07, 2015 02:25AM

Re: leaking memory nginx 1.8.0

halozen July 07, 2015 02:52AM

Re: leaking memory nginx 1.8.0

evgeni22 July 07, 2015 04:02AM

Re: leaking memory nginx 1.8.0

evgeni22 July 07, 2015 09:03AM

Re: leaking memory nginx 1.8.0

Valentin V. Bartenev July 07, 2015 01:06PM

Re: leaking memory nginx 1.8.0

evgeni22 July 07, 2015 01:12PM

Re: leaking memory nginx 1.8.0

Valentin V. Bartenev July 07, 2015 01:20PM

Re: leaking memory nginx 1.8.0

evgeni22 July 07, 2015 03:37PM

Re: leaking memory nginx 1.8.0

itpp2012 July 07, 2015 03:47PM

Re: leaking memory nginx 1.8.0

evgeni22 July 07, 2015 04:02PM

Re: leaking memory nginx 1.8.0

Reinis Rozitis July 07, 2015 05:12PM

Re: leaking memory nginx 1.8.0

Reinis Rozitis July 07, 2015 05:22PM

Re: leaking memory nginx 1.8.0

evgeni22 July 08, 2015 02:22AM

Re: leaking memory nginx 1.8.0

evgeni22 July 08, 2015 02:57AM

Re: leaking memory nginx 1.8.0

evgeni22 July 08, 2015 03:44AM

Re: leaking memory nginx 1.8.0

Reinis Rozitis July 08, 2015 08:48AM

Re: leaking memory nginx 1.8.0

Frederik Nosi July 08, 2015 10:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 110
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