MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: AuroraZero on 2013-01-04, 08:45:31

Title: Do I have to use php-fpm?
Post by: AuroraZero on 2013-01-04, 08:45:31
Do I have to use php-fpm with nginx? Can In use fast-cgi? If I can how can I go about switching it?

The reason I ask is because I have two WP sites that when running Apache and fast-cgi use 91Mb but when running nginx and php-fpm use 251mb. It was my thought nginx was supposed to be faster and use less ram but this does not appear to be the case. Yes I have optimized both nginx and php-fpm unless I am missing something big time here. It is php 5.3u.
Title: Re: Do I have to use php-fpm?
Post by: Tsanten on 2013-01-04, 17:20:12
Do a Siege run on both to see performance diference between ( used on few sites and never go up over 90 mb with a run of loadimpact.com)
Look at free ram ( free -m)
Title: Re: Do I have to use php-fpm?
Post by: AuroraZero on 2013-01-05, 00:05:35
That is how I check ram always free- m.

As for the load I see a performance increase but the cost of the ram is not worth it. The VPS would crash in seconds if I left it run like this. I have changed it back and until I can figure this out I won't be doing that again. I have a test server I will use for this kind of thing and it can crash all it wants.
Title: Re: Do I have to use php-fpm?
Post by: Tsanten on 2013-01-05, 00:54:50
Run this stuff to have a clue on wats going on with memory  http://mysqlmymon.com/ (http://mysqlmymon.com/)
Specifically this little one https://github.com/pixelb/scripts/blob/ ... /ps_mem.py (https://github.com/pixelb/scripts/blob/master/scripts/ps_mem.py)