Subject: Re: Xlib: Maximum number of clients reached
To: Geoff Wing <mason@primenet.com.au>
From: Andrew Brown <atatat@atatdot.net>
List: netbsd-help
Date: 10/15/2004 23:29:23
On Fri, Oct 01, 2004 at 05:28:42AM +0000, Geoff Wing wrote:
>Jeremy C. Reed <reed@reedmedia.net> typed:
>: I understand that "Xlib: Maximum number of clients reached" can mean
>: several different things. Does anyone have a list of things this can mean?
>
>It's hit a limit on file descriptors.
>
>: xrestop tells me I have 58 clients.
>
>Generally you'll use 7 or 8 fd's as a base.  This indicates you have
>the default 64 file descriptor resource limit still set.
>
>: I tried bumping the descriptors allowed
>
>You have to have this set before you start X.  It's unlikely to
>work setting it (e.g. via sysctl) after it's started.

if the x server is the piece "at fault", then this ought to help:

    # sysctl -w proc.`pgrep X`.rlimit.descriptors.soft=256

maybe?

-- 
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org             * "ah!  i see you have the internet
twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
werdna@squooshy.com       * "information is power -- share the wealth."