>
> *** Starting uWSGI 2.0.8 (64bit) on [Thu Nov 13 07:46:24 2014] ***
> compiled with version: 4.8.2 on 13 November 2014 06:54:03
> os: Linux-2.6.32-33-pve #1 SMP Fri Sep 26 08:02:30 CEST 2014
> nodename: u1404
> machine: x86_64
> clock source: unix
> pcre jit disabled
> detected number of CPU cores: 2
> current working directory: /home/aldem/src/perl
> detected binary path: /home/aldem/src/uwsgi/uwsgi-2.0.8/uwsgi
> *** WARNING: you are running uWSGI without its master process manager
> ***
> your processes number limit is 127542
> your memory page size is 4096 bytes
> detected max file descriptor number: 1024
> lock engine: pthread robust mutexes
> thunder lock: disabled (you can enable it with --thunder-lock)
> uwsgi socket 0 bound to TCP address :9090 fd 3
> initialized Perl 5.18.2 main interpreter at 0x2463b80
> your server socket listen backlog is limited to 100 connections
> your mercy for graceful operations on workers is 60 seconds
> mapped 72768 bytes (71 KB) for 1 cores
> *** Operational MODE: single process ***
> Plack::Util is not installed, using "do" instead of "load_psgi"
> 2014-11-13 07:46:24.0.362784 [15195] Worker started
> PSGI app 0 (psgi-streamer.pl) loaded in 0 seconds at 0x26393d8
> (interpreter 0x2463b80)
> *** uWSGI is running in multiple interpreter mode ***
> spawned uWSGI worker 1 (and the only) (pid: 15195, cores: 1)
>
>> I have tried with every combination, so i must be missing something
>
> Do you have Plack::Util installed? Not sure what it does but it could be
> (theoretically) related (I do not have it).
>
> Regards,
> Alexander.
Nothing, i cannot reproduce it :(
This is the code:
use strict;
use warnings;
sub streamer {
my $responder = shift;
my $writer = $responder->([200, ['Content-Type' => 'text/plain']]);
$writer->write("Oops...\n");
$writer->close();
}
my $app = sub {
my $env = shift;
return \&streamer;
};
The memory usage is super-stable:
{address space usage: 61595648 bytes/58MB} {rss usage: 7811072 bytes/7MB}
[pid: 10565|app: 0|req: 65750/65750] 192.168.173.24 () {24 vars in 264
bytes} [Thu Nov 13 14:04:31 2014] GET / => generated 8 bytes in 0 msecs
(HTTP/1.0 200) 1 headers in 45 bytes (0 switches on core 0)
{address space usage: 61595648 bytes/58MB} {rss usage: 7811072 bytes/7MB}
[pid: 10565|app: 0|req: 65751/65751] 192.168.173.24 () {24 vars in 264
bytes} [Thu Nov 13 14:04:31 2014] GET / => generated 8 bytes in 0 msecs
(HTTP/1.0 200) 1 headers in 45 bytes (0 switches on core 0)
{address space usage: 61595648 bytes/58MB} {rss usage: 7811072 bytes/7MB}
[pid: 10565|app: 0|req: 65752/65752] 192.168.173.24 () {24 vars in 264
bytes} [Thu Nov 13 14:04:31 2014] GET / => generated 8 bytes in 0 msecs
(HTTP/1.0 200) 1 headers in 45 bytes (0 switches on core 0)
{address space usage: 61595648 bytes/58MB} {rss usage: 7811072 bytes/7MB}
[pid: 10565|app: 0|req: 65753/65753] 192.168.173.24 () {24 vars in 264
bytes} [Thu Nov 13 14:04:31 2014] GET / => generated 8 bytes in 0 msecs
(HTTP/1.0 200) 1 headers in 45 bytes (0 switches on core 0)
{address space usage: 61595648 bytes/58MB} {rss usage: 7811072 bytes/7MB}
[pid: 10565|app: 0|req: 65754/65754] 192.168.173.24 () {24 vars in 264
bytes} [Thu Nov 13 14:04:31 2014] GET / => generated 8 bytes in 0 msecs
(HTTP/1.0 200) 1 headers in 45 bytes (0 switches on core 0)
{address space usage: 61595648 bytes/58MB} {rss usage: 7811072 bytes/7MB}
[pid: 10565|app: 0|req: 65755/65755] 192.168.173.24 () {24 vars in 264
bytes} [Thu Nov 13 14:04:31 2014] GET / => generated 8 bytes in 0 msecs
(HTTP/1.0 200) 1 headers in 45 bytes (0 switches on core 0)
{address space usage: 61595648 bytes/58MB} {rss usage: 7811072 bytes/7MB}
[pid: 10565|app: 0|req: 65756/65756] 192.168.173.24 () {24 vars in 264
bytes} [Thu Nov 13 14:04:31 2014] GET / => generated 8 bytes in 0 msecs
(HTTP/1.0 200) 1 headers in 45 bytes (0 switches on core 0)
{address space usage: 61595648 bytes/58MB} {rss usage: 7811072 bytes/7MB}
[pid: 10565|app: 0|req: 65757/65757] 192.168.173.24 () {24 vars in 264
bytes} [Thu Nov 13 14:04:31 2014] GET / => generated 8 bytes in 0 msecs
(HTTP/1.0 200) 1 headers in 45 bytes (0 switches on core 0)
{address space usage: 61595648 bytes/58MB} {rss usage: 7811072 bytes/7MB}
[pid: 10565|app: 0|req: 65758/65758] 192.168.173.24 () {24 vars in 264
bytes} [Thu Nov 13 14:04:31 2014] GET / => generated 8 bytes in 0 msecs
(HTTP/1.0 200) 1 headers in 45 bytes (0 switches on core 0)
{address space usage: 61595648 bytes/58MB} {rss usage: 7811072 bytes/7MB}
[pid: 10565|app: 0|req: 65759/65759] 192.168.173.24 () {24 vars in 264
bytes} [Thu Nov 13 14:04:31 2014] GET / => generated 8 bytes in 0 msecs
(HTTP/1.0 200) 1 headers in 45 bytes (0 switches on core 0)
{address space usage: 61595648 bytes/58MB} {rss usage: 7811072 bytes/7MB}
[pid: 10565|app: 0|req: 65760/65760] 192.168.173.24 () {24 vars in 264
bytes} [Thu Nov 13 14:04:31 2014] GET / => generated 8 bytes in 0 msecs
(HTTP/1.0 200) 1 headers in 45 bytes (0 switches on core 0)
{address space usage: 61595648 bytes/58MB} {rss usage: 7811072 bytes/7MB}
[pid: 10565|app: 0|req: 65761/65761] 192.168.173.24 () {24 vars in 264
bytes} [Thu Nov 13 14:04:31 2014] GET / => generated 8 bytes in 0 msecs
(HTTP/1.0 200) 1 headers in 45 bytes (0 switches on core 0)
{address space usage: 61595648 bytes/58MB} {rss usage: 7811072 bytes/7MB}
[pid: 10565|app: 0|req: 65762/65762] 192.168.173.24 () {24 vars in 264
bytes} [Thu Nov 13 14:04:31 2014] GET / => generated 8 bytes in 0 msecs
(HTTP/1.0 200) 1 headers in 45 bytes (0 switches on core 0)
{address space usage: 61595648 bytes/58MB} {rss usage: 7811072 bytes/7MB}
[pid: 10565|app: 0|req: 65763/65763] 192.168.173.24 () {24 vars in 264
bytes} [Thu Nov 13 14:04:31 2014] GET / => generated 8 bytes in 0 msecs
(HTTP/1.0 200) 1 headers in 45 bytes (0 switches on core 0)
{address space usage: 61595648 bytes/58MB} {rss usage: 7811072 bytes/7MB}
[pid: 10565|app: 0|req: 65764/65764] 192.168.173.24 () {24 vars in 264
bytes} [Thu Nov 13 14:04:31 2014] GET / => generated 8 bytes in 0 msecs
(HTTP/1.0 200) 1 headers in 45 bytes (0 switches on core 0)
Can you re-run the same test with $writer->write("Oops...\n"); commented ?
if commenting it solves your issue we will know where to look at, and
eventually do an ad-hoc fix
--
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi