Welcome! Log In Create A New Profile

Advanced

nginx high memory usage in benchmarks

Martin Reissner
June 17, 2009 01:16PM
hello,
i've been running some benchmarks for static content with httperf and
autobench to compare nginx to apache's worker mpm. i used the default
config on apache (2 worker processes, 150 max clients) and set nginx to
use 2 worker processes with epoll and a keepalive_timeout of 15.
during the benchmarks i monitored the systems ressources with sar and
while i expected nginx to outperform apache in every way possible i
noticed that nginx uses way more ram than apache while staying ~1/3rd
behind it in cpu usage.

the benchmarks request a 10k file repeatedly over multiple persistent
connections and while apache used ~5mb throughout the tests nginx took
~70mb. can someone explain to me what the cause of this might be. from
what i read its low memory usage is one of the key features of nginx so
i'm pretty sure somethings wrong on my side.

martin
Subject Author Posted

nginx high memory usage in benchmarks

Martin Reissner June 17, 2009 01:16PM

Re: nginx high memory usage in benchmarks

Igor Sysoev June 17, 2009 01:22PM

Re: nginx high memory usage in benchmarks

Martin Reissner June 17, 2009 02:18PM

Re: nginx high memory usage in benchmarks

merlin corey June 24, 2009 12:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 188
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready