Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I just experienced a lot of memory usage in my server. So, found out that php-fpm is the one who is eating my memory. Now, how can I know whats the exact location of the problem? How to see which php script is taking too much memory? (Im running an Ubuntu server)

share|improve this question
Try running one at a time and watch what resources are used by each. – John Gardeniers Apr 23 '12 at 8:38
Can't do that... im using wordpress :) – EApubs Apr 23 '12 at 8:43
Maybe you should reword your question and include all relevant information. – John Gardeniers Apr 23 '12 at 8:49
Id't be happy to... what are the information you need? – EApubs Apr 23 '12 at 8:55
Is php-fpm 'eating your memory' because it has spawned too many processes or because of the files it is running? Wordpress' backend (admin pages) tend to take a lot of memory - and extensions are often the culprit. Try to profile the site with XDebug, you may get some useful information. Likewise, you may consider setting a memory limit with Suhosin (suhosin.memory_limit), it will log the filepath and line number of any script that tries to exceed the limit. Also, consider setting up PHP-FPM's slow log - it is not directly related, but may point you in the right direction. – cyberx86 Apr 23 '12 at 11:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.