Is is possible to increase the file descriptor(ulimit) limit?

Issue

I'm getting the error message "Too many open files" and would like to look into ways on how we could increase the max open files limit( ulimit)

Resolution

Unfortunately, there isn't a way to increase the max file descriptor limit. The limit is defined based upon the size of the dyno and is not something that can be adjusted. Current limits are as follows (please note that Heroku may change the values at any time without notice)

  • Eco, Hobby, Standard-1X, Standard-2X, Private-S: 10000
  • Performance-M, Performance-L, Private-M, Private-L, Shield-M, Shield-L: 1048576

The only way to get a higher limit is to use a larger dyno type.

Ask on Stack Overflow

Engage with a community of passionate experts to get the answers you need

Ask on Stack Overflow

Heroku Support

Create a support ticket and our support experts will get back to you

Contact Heroku Support