"Maximum number of clients reached on X" - Desktop Customization & Workflow

Users browsing this thread: 1 Guest(s)
venam
Administrators
It seems to emerge from this (basing it on Xorg-Server for mac which should be the same). if AllocNewConnection fails it then calls ErrorConnMax which will output that NOROOM "Maximum number of clients reached".

AllocNewConnection can fail on either of these cases:

However, in your case it's probably a client limit issue, try setting the maxclients option to 2048 as it seems to be the maximum allowed by X. Even though the manpage Xserver(1) says it shouldn't go above 512, it should still work.

Code:
-maxclients
               64|128|256|512  Set  the maximum number of clients allowed to connect to
               the X server.  Acceptable values are 64, 128, 256 or 512.

EDIT: It actually makes no sense to change these values without actually following the current number of opened clients. The most accurate way I've found to list them is:

Code:
xwininfo -tree -root
It does it by calling XQueryTree on the root window.

While, for example:
Code:
xlsclients -a

Which may sound like it would actually do what is intended, however, it lists the clients found in the WM_COMMAND and WM_CLIENT_MACHINE EWMH attributes on the root window, which isn't accurate at all.


Messages In This Thread
RE: "Maximum number of clients reached on X" - by venam - 01-09-2020, 05:35 PM