> 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 system 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
>
> 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
>
> The backtrace seems to be empty.
> Do I have to manually activate the backtrace in order to see what is
> going on?
> Thanks.
>
> --
>

Not on Linux, probably your process is completely messed up.

You are trying to allocate 1.6 gigs of memory.

Are you using some uwsgi api function in your app ?  If yes, can you paste
it ?

Can you paste the whole logs til the memory allocation error ?

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

Reply via email to