宕机前的错误消息:posix_memalign(16,4096)失败(12:无法分配内存)
我有一台运行在Gunicorn和Nginx之上的Django服务器,昨天晚上我经历了一小段时间的停机。 重新启动Nginx和Gunicorn后,服务器恢复正常,但我无法弄清楚是什么导致了中断。 检查日志概述了问题发生的地方:首先,大约有100行: 2014/03/04 15:48:47 [emerg] 21790#0: *19536658 posix_memalign(16, 4096) failed (12: Cannot allocate memory), client: xx.xx.xx.xx, server: www.mysite.com, request: "GET /static/images/loading.gif HTTP/1.1", host: "www.mysite.com" 然后,实际的错误来了。 这其中约有300个: 2014/03/04 15:49:04 [error] 21790#0: *19532341 connect() failed (110: Connection timed out) while connecting to upstream, client: xx.xx.xx.xx, server: www.mysite.com, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8081/", host: "www.mysite.com" …和其中约100个: […]