My uWSGI configuration is as follow.

[uwsgi]
socket = /var/run/uwsgi/myapp.sock
;http = :8080
stats = 127.0.0.1:9191
pidfile = /var/run/uwsgi/myapp.pid
daemonize = /var/log/uwsgi/myapp.log
log-slow = true

master = true

chdir = /srv/myapp
wsgi-file = /srv/myapp/main.py

processes = 4
enable-threads = true
threads = 2 ; 4
offload-threads = 0 ; 1
single-interpreter = true

harakiri = 30
limit-post = 65536
post-buffering = 8192

uid = root
;uid = appuserid
#gid = i2c

#queue = 10
queue = 10
#queue-blocksize = 500000
queue-blocksize = 500000
reload-os-env = true

locks = 2



Regards,
Poh Yee Hui

On 2/4/2015 10:36 PM, Roberto De Ioris wrote:
Hi,

I would like to ask for some help regarding issues with memory allocation.
This is the error that I have found in the log.

malloc(): Cannot allocate memory [core/utils.c line 1781]
!!! tried memory allocation of 1768781160 bytes !!!
*** backtrace of 7276 ***
*** end of backtrace ***

This is the configuration I am using:

   * Raspberry Pi model B (first generation)
   * Raspbian with kernel 3.12.35+
   * uWSGI 2.0.9
   * Nginx 1.2.1
   * Python 2.7.3

The backtrace seems to be empty.
Do I have to manually activate the backtrace in order to see what is
going on?
Thank you.

-
Hi, paste your uWSGI configuration, you are allocating a huge memory area,
let's see if it is caused by some configuration option.



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

Reply via email to