Blog

Fixing 'Too many open files' while trying to run an intensive shell script

Posted on June 05, 2017

All I wanted to do was run a shell script that traversed a list of ~25,000 Elasticsearch indexes and operated on them. Terminal would not allow it. 

Here's how to temporarily figure that one out...

`ulimit -n 2048` will set the open files count for the current Terminal session. This will reset once the session is exited.

Awesome!

Done reading this post? Return Home.

Thanks for making it all the way down here! Check back in the future for a full blog with more than one post.