Error: Too many open files in system error [How to Solve]

Too many open files in system error handling scheme

Such system problems can be solved at the terminal as follows:
view file limits>

// Check the limit of files
launchctl limit maxfiles  // maxfiles  256   unlimited

Open administrator privileges with sudo

// use sudo to open the administator
sudo vim /etc/sysctl.conf

after entering the editing mode, paste and copy the following code, and then ESC exits the editing mode

// increase the limit
kern.maxfiles=65536
kern.maxfilesperproc=65536

input: WQ exit, and then restart the computer

Read More: