When using Google Chrome I frequently get “Sorry Jim” tabs. The browser also frequently freezes and crashes.
Running it from terminal emulator show a long line of Too many open files
:
[...:ERROR:shared_memory_posix.cc(231)] Creating shared memory in /dev/shm/.com.google.Chrome.0A3O7D failed: Too many open files
[...:ERROR:shared_memory_posix.cc(231)] Creating shared memory in /dev/shm/.com.google.Chrome.gr0r3Q failed: Too many open files
Google Chrome (32-bit, not sure if it affects 64-bit).
Best Answer
Increase hard/soft limit.
Thus far a limit of
8192
seems to be enough. 4096 have proven to be to small.Optionally only increase hard limit (if needed) and do:
from shell in which Chrome is started.
Note that the use of (the somewhat wide spread) way:
might not be what one want, as it also strips your environment.