Hey guys...
So, from some days ago my server started giving error 504 Gateway timeout. According to the Linode support my server started OOMing with php-fpm processes. There are a few interesting things that I would like to question:
- Despite the fact that the process killer is being engaged when this type of problem happens, if I log in my server with regular SSH and check it with htop, it doesn't look like I'm out of memory at all.
- This problem is happening at odd moments. It happens when the traffic is extremely lower than when it works just fine which makes me think that maybe I'm getting zombie processes and they are piling up and filling up the memory. Does anyone knows if that can happen and how can I prevent it?
My PHP-FPM version is...
PHP 5.3.5-1ubuntu7.2 (fpm-fcgi) (built: May 2 2011 23:26:15)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
And my nginx version is...
nginx version: nginx/1.0.1
Here is an excerpt of my php-fpm configuration:
http://p.linode.com/5543
The "pm.max_requests = 500" is a new one and I didn't have any problems so far. We are waiting

Any tips and tricks?
Thanks!