Hi
I'm running into this the first time (which might suggest that something has changed, perhaps just the duration I'm able to keep running without rebooting?).
After running my laptop for a bit over 2 months, I've started getting, for example when running urxvt from another terminal:
Maximum number of clients reachedurxvt: can't open display :0.0, aborting.
Doesnt' matter which X app, any one will give the same error, and closing 1 app will allow another 1 to be opened. I've googled for 20 minutes, and while there are tons of bug reports for Ubuntu, Redhat, etc.etc., all of them go on forever without anyone pinpointing the real issue or finding a solution.
xlsclients|wc -l
tops out at 158,
ls /proc/`pidof Xorg`/fd|wc -l
at 256. This being such a round number seems to strongly suggest that it's tied to the number of fds. But why so low? xorg.conf does not mention any limit.
# cat /proc/`pidof Xorg`/limits
Limit Soft Limit Hard Limit Units
Max cpu time unlimited unlimited seconds
Max file size unlimited unlimited bytes
Max data size unlimited unlimited bytes
Max stack size 8388608 unlimited bytes
Max core file size 0 unlimited bytes
Max resident set unlimited unlimited bytes
Max processes 31119 31119 processes
Max open files 1024 4096 files
Max locked memory 65536 65536 bytes
Max address space unlimited unlimited bytes
Max file locks unlimited unlimited locks
Max pending signals 31119 31119 signals
Max msgqueue size 819200 819200 bytes
Max nice priority 0 0
Max realtime priority 0 0
Max realtime timeout unlimited unlimited us
As you can see, max open files is the usual 1024. Thus this seems to be Xorg itself deciding to stop accepting connections. How can I increase it?
Christian.