How to set ulimit and file descriptors limit on Linux Servers

2 Responses

  1. Raji says:

    cat /proc/sys/fs/file-max shows 146013, but

    ulimit -a shows:
    open files (-n) 1024

    What is the difference

    • Pradeep Kumar says:

      cat /proc/sys/fs/file-max –> shows the limit of max open file for the system wide

      ulimit -a –> will show all the resources limit of a specific user

Leave a Reply

Your email address will not be published. Required fields are marked *