>On 02/20/2015 02:36 PM, John K. Herreshoff wrote:
>> What does ps -A show you?
>
>Here's a current list of processes with more than one instance by
>frequency:
It doesn't help though, as any single one of those
processes might either have 0 Xserver display
connections, or 200 of them!
What does this show:
xlsclients | wc -l
That gives the current count of X clients. I'm not sure
how high it should be able to go. Mine right now shows
47.
One thought that may or may not work out, is to start
some "throw away" process that uses X, and let it run
until you get the error message. Then kill the process
and immediately run xlsclients to get a list of clients.
I'd do that on one command line to try to prevent
something else from being able to grab that one client
slot made available. Another way might be to run 10 or
20 instances of something (a game, for example). Then
use killall to get them all. That gives at least some
elbow room!
The list produced by xlsclients should show some
inordinate number of clients all to one single process.
Here's a way to make it easy to look at,
xlsclients | cut -d' ' -f1-3 | uniq -c | sort -rn
The highest count process will be at the top, and each
line starts with the number for that process.
You might also just randomly, while using the computer,
do the "xlsclients | wc -l" command and watch for any
unusual increase in the number. If it is usually less
than say 50, any time it hits 100 is something to take
a closer look at.
Or that command could be put into a cron job that adds
to a log file. When the problem occurs, check the last
few entries in the log file to see what was changing.
You'd probably want to add " | head -2" to the command
sequence though, to keep the size of the log file
reasonable.