ISPmanager. Ошибка nginx: [alert] mmap(MAP_ANON|MAP_SHARED, 327680000) failed (12: Cannot allocate memory) (ispmanager)

При редактировании параметров www-доменов иногда получаем подобную ошибку:

Ошибка nginx: [alert] mmap(MAP_ANON|MAP_SHARED, 327680000) failed (12: Cannot allocate memory)

Для решение этой проблемы подключаемся по SSH, и редактируем конфиг /etc/nginx/nginx.conf. Увидим примерно такое:

user apache;
worker_processes 4;
worker_rlimit_nofile 80000;

error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;


events {
use epoll;
worker_connections 65536;
}

Уменьшаем worker_connections, например, до 1024, перезапускаем NGinx и пробуем.

2 комментария

  1. I’ve been exploring for a little for any high-quality articles or
    weblog posts on this kind of area . Exploring in Yahoo
    I at last stumbled upon this website. Studying this information So i am
    glad to express that I’ve a very good uncanny feeling I
    found out exactly what I needed. I most undoubtedly will make sure to don?t disregard this
    website and give it a look on a constant basis.

  2. Hi there, just became alert to your blog through
    Google, and found that it’s truly informative. I’m gonna watch out for brussels.
    I will appreciate if you continue this in future.

    Many people will be benefited from your writing.
    Cheers!

Оставьте ответ