Welcome! Log In Create A New Profile

Advanced

Re: Memory consumption of ningx

October 30, 2012 07:42AM
On Monday 29 October 2012 21:13:01 peschuster wrote:
> Hi,
>
> I cross-compiled nginx for microblaze processors
> (http://github.com/peschuster/nginx) and am currently doing some
> performance benchmarks with nginx running on a microblaze processor with a
> custom designed SoC on a FPGA.
>
> However, I am having problems with the memory consumption of nginx:
>
> When I perform 10,000 requests with 20 conn/s and 2 requests/conn (using
> httperf - 1), memory used by nginx grows to about 40 MB.
> When I repeat this benchmark, the used memory grows from 40 to 80 MB.
>
> The problem with this behavior is that my SoC only has 256 MB of RAM in
> total (the file system also runs completely from RAM using a ramdisk).
> Therefore nginx crashes the complete system by consuming all memory for
> longer/extended benchmark scenarios.
>
> Is this the intended behavior of nginx? Why isn't it "re-using" the already
> allocated memory?

Nginx releases allocated memory after it completes each request.

> Any hints on how I can circumvent or track down this problem?
>

It most likely that your system memory allocator do not return freed memory to
the OS.

wbr, Valentin V. Bartenev

--
http://nginx.com/support.html
http://nginx.org/en/donation.html

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Memory consumption of ningx

peschuster October 29, 2012 01:13PM

Re: Memory consumption of ningx

Anton Yuzhaninov October 30, 2012 06:16AM

Re: Memory consumption of ningx

peschuster October 30, 2012 07:13AM

Re: Memory consumption of ningx

VBart October 30, 2012 07:42AM

Re: Memory consumption of ningx

peschuster October 31, 2012 07:28AM

Re: Memory consumption of ningx

VBart October 31, 2012 10:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 194
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