Menu
Newbedev LogoNEWBEDEV Python Javascript Linux Cheat sheet
Newbedev LogoNEWBEDEV
  • Python 1
  • Javascript
  • Linux
  • Cheat sheet
  • Contact

nginx uLimit 'worker_connections exceed open file resource limit: 1024'

Solution 1:

Set worker_rlimit_nofile 65535; in nginx.conf within the main context.

Solution 2:

Become the user:

su - nginx

Check the limits:

ulimit -Hn
ulimit -Sn

Edit the number of files the file system will let you have open:

vi /etc/sysctl.conf
fs.file-max = 70000

load your changes:

sysctl -p

See if that helps.

Tags:

Linux

Nginx

Debian

Ulimit

Files

Related

Why do some host volumes in Docker containers give the error "too many levels of symbolic links"? How to ban Syn Flood Attacks using Fail2Ban? Display output with Ansible Can Puppet File Source be from a web service? Why is DNS returning two different results at random? Booting an EC2 instance from an existing EBS volume rsync taking 100% of CPU and hours to complete Reverse DNS records not registered when using DHCP Trusted root certificate being automatically removed from store nginx logging to access.log.1 instead of access.log, logrotate failing? How do I make a connection private on Windows Server 2012 R2 (network unreachable) error in my server logs

Recent Posts

Pandas how to find column contains a certain value Recommended way to install multiple Python versions on Ubuntu 20.04 Build super fast web scraper with Python x100 than BeautifulSoup How to convert a SQL query result to a Pandas DataFrame in Python How to write a Pandas DataFrame to a .csv file in Python
© 2021 newbedevPrivacy Policy