Welcome! Log In Create A New Profile

Advanced

Re: Memory use flares up sharply, how to troubleshoot?

July 22, 2014 01:07PM
Hi,

> Trivial workaround is to use "uwsgi_buffers 8 64k" instead.
> Or you may try the following patch:

Thank you! I tried the uwsgi_buffers workaround in production, and the patch in my reproduction setup, and indeed both seem to fix this problem; the request runs to completion with no memory growth.

> - your backend app returns data in very small chunks, thus there
> are many ngx_readv_chain() calls;

That's a likely cause of high CPU usage in Nginx, right? It goes to 20% for this one request (without debug), the Python app taking the rest. My intuition was that joining chunks on the Python side would be much more expensive ... but those thousands of ngx_readv_chain() calls per second are quite costly too, I take it?

Cheers,

Gulli
Subject Author Posted

Memory use flares up sharply, how to troubleshoot?

gthb July 21, 2014 11:15AM

Re: Memory use flares up sharply, how to troubleshoot?

Maxim Dounin July 21, 2014 12:40PM

Re: Memory use flares up sharply, how to troubleshoot?

gthb July 21, 2014 02:18PM

Re: Memory use flares up sharply, how to troubleshoot?

Maxim Dounin July 21, 2014 03:34PM

Re: Memory use flares up sharply, how to troubleshoot?

gthb July 21, 2014 05:44PM

Re: Memory use flares up sharply, how to troubleshoot?

Maxim Dounin July 22, 2014 07:54AM

Re: Memory use flares up sharply, how to troubleshoot?

gthb July 22, 2014 10:51AM

Re: Memory use flares up sharply, how to troubleshoot?

Maxim Dounin July 22, 2014 12:04PM

Re: Memory use flares up sharply, how to troubleshoot?

gthb July 22, 2014 01:07PM

Re: Memory use flares up sharply, how to troubleshoot?

Maxim Dounin July 22, 2014 03:38PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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