Skip to content

worker_connections increase #1435

@PavelkaDavid

Description

@PavelkaDavid

Hi, I have nginx proxy manager running in docker container and it hosts wordpress. In peak time web sometimes throw "500 Internal Server Error".
image

When searching through the error logs I always found this:

[alert] 2190841#2190841: 1024 worker_connections are not enough
[warn] 2190841#2190841: 1024 worker_connections are not enough, reusing connections

I've wanted to increase worker_connections, but I was unlucky as the only possible way is to add it to "/data/nginx/custom/root.conf":

events {
    worker_connections  10024;
}

That resulted into this error: "events" directive is duplicate in /data/nginx/custom/root.conf:1

So I'm out of ideas and replacing /etc/nginx/nginx.conf directly seems sketchy to me. Is there another way?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions