VPS (Provided by MyHosting VPS)
1076 mhz cpu
1056mb ram
100gb space
600gb transfer limit
Test #1: Configuration
Naginx 1.0.5 - Default Settings (2 worker processes, 1024 connections)
Php 5.3.10 through fast cgi - Default Settings
Mysql 5.5 - Default Settings
Php timeout limit 900 seconds, fastcgi timeout settings 900 seconds. Nothing else changed.
Test time 10 minutes
Starting number of concurrent connections, 0. Ending number, 500.
Test #1: Results
See the full test results here - https://loadimpact.c...137ae516b59e212
Memory Usage Start: 275
Memory Usage End: 401
CPU Usage reached 100% usage at 200 concurrent users
Test #2: Configuration
Naginx 1.0.5 - Default Settings (2 worker processes, 1024 connections)
Php 5.3.10 through php-fpm - default settings
Php APC 3.1.9
Mysql 5.5 - Default Settings
Php timeout limit 900 seconds, php-fpm timeout settings 900 seconds. Nothing else changed.
Test time 10 minutes
Starting number of concurrent connections, 0. Ending number, 500.
Test #2: Results
See Full Test Results Here - https://loadimpact.c...47a13ca2e904dcc
Memory Usage Start: 231
Memory Usage End: 271
Cpu usage hit 100% at 400 concurrent connections
Conclusion:
Php-fpm with apc provides significant improvements in both delivery speeds, and resource usage. Using almost 100mb less memory when at 500 concurrent users, and providing much faster connection speeds while under heavy load.
My suggestion. Switch from fastcgi to php-fpm and enable apc. Its deffinately worth it (And switching is easy. Install php-fpm. Install Php apc. Start it. Change your fastcgi pass to 127.0.0.1:9000 and restart nginx, then kill fastcgi and your done. Works in the same exact method, but just better
(Even if using another host, php-fpm with apc reduces the strain from php processing. Will improve performance through any method)
Edited by iargue, 08 March 2012 - 04:27 PM.