OSError: [Errno 24] Too many open files [How to Solve]

When you use tensorboard to open too many files at one time, an error will be reported;

Enter the following command:

$ ulimit -n

> 1024

The display system can open up to 1024 files

Temporary modification method:

$ ulimit -n 2048

This method is a temporary modification and is currently valid. Restore the original setting after exiting.

Permanent modification method:

$ sudo vim /etc/security/limits.conf

soft nofile 2048

hard nofile 2048

Restart after saving.

Similar Posts: