[uWSGI] [Help Needed] Cannot allocate memory
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 = 50 queue-blocksize = 50 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. -- Regards, Poh Yee Hui ___ uWSGI mailing list uWSGI@lists.unbit.it http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
Re: [uWSGI] [Help Needed] Cannot allocate memory
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 = 50 queue-blocksize = 50 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 uWSGI@lists.unbit.it http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
Re: [uWSGI] [Help Needed] Cannot allocate memory
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 = 50 queue-blocksize = 50 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 uWSGI@lists.unbit.it http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
[uWSGI] [Help Needed] Cannot allocate memory
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. -- Regards, Poh Yee Hui ___ uWSGI mailing list uWSGI@lists.unbit.it http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
Re: [uWSGI] [Help Needed] Cannot allocate memory
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. -- Roberto De Ioris http://unbit.com ___ uWSGI mailing list uWSGI@lists.unbit.it http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi