debugging Xlib: Maximum number of clients reached

Alan Coopersmith Alan.Coopersmith at Sun.COM
Tue Mar 14 09:39:23 PST 2006


That error really means "your X server ran out of file descriptors < 256"
(or whatever value MAXCLIENTS is defined to in your build), so the first
debugging tool would be something like lsof to see how many files your
X server has open and what they are.   This could be from clients using
too many MIT-SHM segments or something like that.

	-Alan Coopersmith-           alan.coopersmith at sun.com
	 Sun Microsystems, Inc. - X Window System Engineering



Rich wrote:
> hi. i have searched all over the web, tried asking in #xorg and other
> related channels - but have failed to find the answers.  hopefully i
> could get some hints here.
> 
> now and then i am getting errors :
> Xlib: Maximum number of clients reached
> whenever i try to launch some application with a gui. i suspect several
> applications i am using, but i would like to know how can i surely find
> out which one is leaking.
> i have tried running xrestop (0.4), but i was unable to find any
> reasonable information on what should i look at.
> 
> if i can find out the cause by using xrestop, what should i look for ?
> is "Wins" column any indicator ? what are normal values for applications
> to have in this column ? (xrestop manpage is extremely vague regarding
> it's output).
> 
> if it's not xrestop, what other tools could i use to find out what
> causes this problem ?
> 
> thanks.




More information about the xorg mailing list