Systemctl command execution reports 'Too many open files' on Red Hat Enterprise Linux

Solution Verified - Updated -

Issue

  • Every systemctl command throwing the Too many open files error like below.

    # systemctl restart rsyslog
    Error : Too many open files
    
    # systemctl restart crond
    Error: Too many open files
    
  • Increasing fs.file-max in /etc/sysctl.conf to 32000000 and nofile in /etc/securities/limits.conf for all users from 1024 and 10240 also didn't helped.

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content