InformationResourcesCategories |
Nginx vs. Apache2 - in Rails Running Death MatchPosted by Andy Koch at 15:13 | Thursday, May 15. 2008Trackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
You give some clues about what might have been limiting the Apache server. You mention that either the server or the VM running on the server has only 512MB of RAM. You also mention that Apache was using a lot of memory and was swapping extensively.
If Apache isn't able to fit in RAM but Nginx is, I would have expected an even larger ratio in their speeds. Did you measure the number of page faults in the two systems? The production machine your app is going to run on is going to get some reasonable hardware. I think you've only proven that Nginx uses less memory than Apache. While this might be interesting information for someone running a lot of VMs on the same box, I don't think it's interesting for your application.
#1
on
2008-05-15 17:14
no, you're wrong
Apache did run fine in the VM, but it's memory usage exploded when put under the stress of heavy load. I would expect similar results on any server, except that a more powerful server may be able to avoid a blowout. My main point of mentioning the RAM size was that running 4 mongrels on such a system is a bad idea. Maybe 2 mongrels, 3 at most. But then the idea isn't to find optimal performance on this machine bu to get a perspective on which web server performs better as a front-end for my Rails app. To that end, one could claim they're near equal - but when the Rails requests are simply or it's static content, Nginx is clearly superior.
#2
on
2008-05-15 17:21
Are you just speculating, or are you going to release the page fault numbers?
Benchmarks and speculation don't mix very well...
#2.1
on
2008-05-15 17:26
Only registered users may post comments here. Get your own account here and then log into this blog. Your browser must support cookies.
|
QuicksearchPollsWhat should we write about?
Archives Login |