Gnome Files | Too many open files

For w while now i noticed that whenever i try to right click and properties a folder, the system hangs and bunch of small dialog windows pops up with this messege: "Too Many Open Files", i tried reinstalling the "nautilus" package and completely removing the package and re-installing bu it didnt work, finally i used the trace command to trace the process and see what is wrong and found out the problem and a solution to it.

The Problem: System wide there is a limitation in handling files it is by defualt 1024 files for now you can check yours by using this command: "ulimit -n"

The Solution: we need to Increase the Limit to a higher number to do that follow these steps:

  1. Open this File: sudo nano /etc/security/limits.conf
  2. Past the below code @ the end of the file
*         hard    nofile      500000
*         soft    nofile      500000
root      hard    nofile      500000
root      soft    nofile      500000
  1. Save the File and Relogin agian, if you check again using this command "ulimit -n", you can see now that the limit has bean increased. Now you can check Gnome Files and it should wokr fine (:



Popular Posts