Contents

X: Max Client Reached Fix

Contents

A quick fix for X: Maximum number of client reached

When trying to run some app on using X, I got this error message:

1
2
cannot open display: :0.0
Maximum number of clients reached

After some google searches, I found this as a “solution”:

edit your xorg.conf file, I’m using xpra, so /etc/xpra/xorg.conf.
For other display managers, it may be located in /etc/X11/ or somewhere else. Find the ServerFlags section, add this to your file:

1
Option "MaxClients" "512"

To find out what value is supported for MaxClient, simply run Xorg with a very large -maxclient flag

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
/usr/lib/xorg/Xorg -maxclients 1000000000

------

(EE) 
Fatal server error:
(EE) maxclients must be one of 64, 128, 256, 512, 1024 or 2048
(EE) 
(EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
(EE) 


Credit

Does X-Window have a maximum number limit on clients?
How can I diagnose/debug “maximum number of clients reached” X errors?