HI Roberto, thank you for your speedy response! Had some problems applying the patch, could you possibly give me a bit of a pointer in the right direction?
drwxr-x--- 10 foxx foxx 4.0K Feb 1 01:08 uwsgi-0.9.6.7 -rw-r--r-- 1 root root 154K Jan 30 06:01 uwsgi-0.9.6.7.tar.gz [email protected] [~] > patch -p0 < uwsgi_0967_0968.patch patching file uwsgi-0.9.6.7/ChangeLog patching file uwsgi-0.9.6.7/setup.py patching file uwsgi-0.9.6.7/uwsgi.c Hunk #1 FAILED at 160. Hunk #2 FAILED at 909. Hunk #3 FAILED at 1835. 3 out of 4 hunks FAILED -- saving rejects to file uwsgi-0.9.6.7/uwsgi.c.rej patching file uwsgi-0.9.6.7/uwsgi.h Hunk #1 FAILED at 2. Hunk #2 FAILED at 482. 2 out of 2 hunks FAILED -- saving rejects to file uwsgi-0.9.6.7/uwsgi.h.rej /usr/local/lib/python2.7/config/libpython2.7.a(posixmodule.o): In function `posix_tmpnam': /root/stackless-27-export/./Modules/posixmodule.c:7275: warning: the use of `tmpnam_r' is dangerous, better use `mkstemp' /usr/local/lib/python2.7/config/libpython2.7.a(posixmodule.o): In function `posix_tempnam': /root/stackless-27-export/./Modules/posixmodule.c:7230: warning: the use of `tempnam' is dangerous, better use `mkstemp' *** uWSGI is ready, launch it with ./uwsgi *** [email protected] [~/uwsgi-0.9.6.7] > /usr/local/bin/uwsgi-0.9.6.8 --limit-as 512 *** Starting uWSGI 0.9.6.7 (64bit) on [Tue Feb 1 01:09:45 2011] *** compiled with version: 4.3.2 Python version: 2.7 Stackless 3.1b3 060516 (release27-maint, Aug 29 2010, 15:44:48) [GCC 4.3.2] uWSGI running as root, you can use --uid/--gid/--chroot options *** WARNING: you are running uWSGI as root !!! (use the --uid flag) *** *** WARNING: you are running uWSGI without its master process manager *** limiting address space of processes... your process address space limit is 536870912 bytes (512 MB) your memory page size is 4096 bytes malloc(): Cannot allocate memory [uwsgi.c line 915] On Mon, Jan 31, 2011 at 8:35 PM, Roberto De Ioris <[email protected]> wrote: > > Hey, > > > > I've been using uWSGI 0.9.5.4 with the following configuration for > several > > months: > > > > However, upon upgrading to uwsgi-0.9.6.7, we experienced the following > > error: > > malloc(): Cannot allocate memory [uwsgi.c line 915] > > > > After testing each command line option we had, it was pin pointed to the > > --limit-as option: > > > > With --limit-as: > > *** Starting uWSGI 0.9.6.7 (64bit) on [Mon Jan 31 19:55:33 2011] *** > > compiled with version: 4.3.2 > > Python version: 2.7 Stackless 3.1b3 060516 (release27-maint, Aug 29 2010, > > 15:44:48) [GCC 4.3.2] > > limiting address space of processes... > > your process address space limit is 268435456 bytes (256 MB) > > your memory page size is 4096 bytes > > *** WARNING: you have enabled harakiri without post buffering. Slow > > upload > > could be rejected on post-unbuffered webservers *** > > malloc(): Cannot allocate memory [uwsgi.c line 915] > > > > Without --limit-as: > > *** Starting uWSGI 0.9.6.7 (64bit) on [Mon Jan 31 19:55:12 2011] *** > > compiled with version: 4.3.2 > > Python version: 2.7 Stackless 3.1b3 060516 (release27-maint, Aug 29 2010, > > 15:44:48) [GCC 4.3.2] > > *** WARNING: you are running uWSGI without its master process manager > *** > > your memory page size is 4096 bytes > > *** WARNING: you have enabled harakiri without post buffering. Slow > > upload > > could be rejected on post-unbuffered webservers *** > > allocated 640 bytes (0 KB) for 1 request's buffer. > > binding on UNIX socket: /******/uwsgi.sock > > your server socket listen backlog is limited to 100 connections > > initializing hooks...done. > > interpreter for app 0 initialized. > > application 0 (/) ready > > setting default application to 0 > > *** uWSGI is running in multiple interpreter mode *** > > spawned uWSGI worker 1 (and the only) (pid: 7835) > > _______________________________________________ > > uWSGI mailing list > > [email protected] > > http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi > > > > Try attached patch > > -- > Roberto De Ioris > http://unbit.it > _______________________________________________ > uWSGI mailing list > [email protected] > http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi > >
_______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
