Welcome! Log In Create A New Profile

Advanced

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

July 22, 2014 10:51AM
Hi,

here's a minimal configuration where I can reproduce this:

error_log debug.log debug;

events {
worker_connections 1024;
}

http {
uwsgi_buffers 64 8k;

upstream nginx-test.uwsgi {
server 10.0.0.7:13003;
least_conn;
}

server {
listen 8080;
server_name nginx-test.com;

location /api/ {
include uwsgi_params;
uwsgi_pass nginx-test.uwsgi;
}
}
}

Here's a debug log covering server start, a single request that exhibits the problem, and server shutdown:

http://filebin.ca/1UClE4zzhfZe/debug.log.gz

Everything goes OK for a while, just a few stray mallocs, and then maybe half a minute into the request (the time varies), after maybe 20-25MB have been transferred, the flood of mallocs starts:

$ grep malloc: debug.log | cut -d ' ' -f 2 | uniq -c
4 14:34:51
1 14:34:52
3 14:34:56
1 14:34:59
1 14:35:03
2 14:35:12
1216 14:35:27
1135 14:35:28
2144 14:35:29
1996 14:35:30
520 14:35:31

(That last second of mallocs is only smaller because I stopped the client, so the request was aborted)

I hope that debug log turns up something informative --- and thank you again for your time on this.

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: 250
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