> I've recently switched some stable django apps from nginx+apache/modwsgi
> to nginx+uwsgi.
>
> Everything looks great. Memory usage is way down. Concurrency seems better
> too.
>
> However. On one app in particular, after about 30-60 minutes traffic it
> starts throwing these --
>
> writev(): Broken pipe [plugins/python/wsgi_headers.c line 171]
> write(): Broken pipe [plugins/python/wsgi_subhandler.c line 189]
>
> Then these --
>
> *** HARAKIRI ON WORKER 1 (pid: 2578) ***
> HARAKIRI: --- uWSGI worker 1 (pid: 2578) WAS managing request /inject/
> since Tue Mar  8 17:03:21 2011 ---



Does the /inject view launch external processes ? Or is it waiting for
data from external server ?

>
> *** has_emperor mode detected (fd: 13) ***
> [uWSGI] parsing config file site.xml
> open(): Permission denied [utils.c line 158]
> *** Starting uWSGI 0.9.7-dev (32bit) on [Mon Mar  7 23:46:07 2011] ***
> compiled with version: 4.4.3 on 07 March 2011 21:36:51
> uWSGI running as root, you can use --uid/--gid/--chroot options
> setgid() to 1001
> setuid() to 1001



something is wrong here, i will make some check, but what are (currently)
the permissions of the logfile ?

> Not sure why it says "permission denied"- it creates the log and socket
> fine;


yes, it could be a bug in emperor mode


 or why "multiple interpreter mode", when I only have one
> "application" in my wsgi-file.

do not worry, in 0.9.7 having multiple interpreter enabled with only one app
has no performance impact


-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to