malloc(270336) failed

Aleksandr Sytar sytar.alex at gmail.com
Sun Nov 3 19:05:02 UTC 2013


2013/11/3 Anton Kiryushkin <swood at fotofor.biz>

> Не запускать nginx в windows.  А вообще, у вас закончилась память. Без
> конфига сложно понять для чего, но, возможно, для какого-нибудь буфера.
>
>
Это слишком очевидное объяснение понятное из описания ошибки.

Если бы память реально кончилась на сервер нельзя было бы залогиниться. При
этом stub_status отлично отрабатывал.

Конфиг:


#user  nobody;
worker_processes  1;

error_log  logs/error.log;

events {
    worker_connections  1024;
}


http {
    include       mime.types;
    default_type  application/octet-stream;
client_max_body_size 20m; #для загрузки больших картинок

    log_format  main  '$remote_addr - $remote_user [$time_local] "$request"
'
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

    access_log  off;


msie_padding                    on;
        ignore_invalid_headers  on;

        gzip                            on;
        gzip_static                     on;
        gzip_vary                       on;
        gzip_min_length         2048;
        gzip_comp_level         1;
        gzip_buffers                    16 8k;
        gzip_types                      text/plain text/css text/xml
text/javascript application/x-javascript;

        directio                        4m;
        sendfile                        on;
        sendfile_max_chunk              256k;
        tcp_nopush                      on;
        tcp_nodelay                     on;
        reset_timedout_connection       on;

        output_buffers          16 512k;
        postpone_output         1460;

        keepalive_timeout               30 15;
        server_name_in_redirect off;
 proxy_connect_timeout 120s;
 proxy_http_version 1.1;
proxy_ignore_client_abort off;
 proxy_read_timeout 120s;
proxy_send_timeout 120s;

        server_tokens                   off;
    include conf.d/*.conf;
}

server {
    listen       80;
    server_name example.com;
 error_log logs/error.log;
access_log off;

root some_path;
 index index.php;
 proxy_intercept_errors on;
 error_page   500 502 503 504 /503.html;
 location =/503.html {
    }
location / {
try_files $uri @apache;
}

location @apache {
proxy_pass http://backend_babypages;
 proxy_set_header Host $host;
proxy_set_header http_referer $http_referer;
proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
 }
 location =/nginx_status {
stub_status on;
 allow 86.62.121.100;
allow 109.252.246.98;
deny all;
 }

location ~* \.php$ {
proxy_pass http://backend_babypages;
 proxy_set_header Host $host;
proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header http_referer $http_referer;
 }

}




> 2013/11/3 Aleksandr Sytar <sytar.alex at gmail.com>
>
>> Сегодня столкнулся со следующей проблемой:
>>
>> 2013/11/03 17:24:54 [emerg] 4532#1564: *1875523 malloc(270336) failed (8:
>> Not enough storage is available to process this command) while sending to
>> client, client: 5.10.83.57, server: ___.ru, request: "GET /6032/33621/
>> HTTP/1.1", upstream: "http://127.0.0.1:8081/6032/33621/", host: "____.ru"
>>
>>
>>  Microsoft Windows [Version 5.2.3790]
>> (C) Copyright 1985-2003 Microsoft Corp.
>>
>> c:\nginx>nginx -V
>> nginx version: nginx/1.4.2
>> TLS SNI support enabled
>> configure arguments: --with-cc=cl --builddir=objs.msvc8 --with-debug
>> --prefix= -
>> -conf-path=conf/nginx.conf --pid-path=logs/nginx.pid
>> --http-log-path=logs/access
>> .log --error-log-path=logs/error.log --sbin-path=nginx.exe
>> --http-client-body-te
>> mp-path=temp/client_body_temp --http-proxy-temp-path=temp/proxy_temp
>> --http-fast
>> cgi-temp-path=temp/fastcgi_temp --http-scgi-temp-path=temp/scgi_temp
>> --http-uwsg
>> i-temp-path=temp/uwsgi_temp --with-cc-opt=-DFD_SETSIZE=1024
>> --with-pcre=objs.msv
>> c8/lib/pcre-8.32 --with-zlib=objs.msvc8/lib/zlib-1.2.8
>> --with-select_module --wi
>> th-http_realip_module --with-http_addition_module --with-http_sub_module
>> --with-
>> http_dav_module --with-http_stub_status_module --with-http_flv_module
>> --with-htt
>> p_mp4_module --with-http_gunzip_module --with-http_gzip_static_module
>> --with-htt
>> p_random_index_module --with-http_secure_link_module --with-mail
>> --with-openssl=
>> objs.msvc8/lib/openssl-1.0.1e --with-openssl-opt=enable-tlsext
>> --with-http_ssl_m
>> odule --with-mail_ssl_module --with-ipv6
>>
>>
>> Что это было и как этого избегать в дальнейшем?
>>
>>
>> _______________________________________________
>> nginx-ru mailing list
>> nginx-ru at nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx-ru
>>
>
>
>
> --
> Best regards,
> Anton Kiryushkin
>
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-ru
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-ru/attachments/20131103/2a68092a/attachment-0001.html>


Подробная информация о списке рассылки nginx-ru