SUMMARY: Xlib: Maximum number of clients reached

From: Adam and Christine Levin <levins_at_westnet.com>
Date: Mon Jul 29 2002 - 11:30:19 EDT
Original question is at the bottom.

Thanks to:
Casper Dik <Casper.Dik@Sun.COM>
Donald.J.Manley@jpmchase.com
mike.salehi@kodak.com
"Steudten Thomas (KTPZ 2)" <thomas.steudten@csfs.com>
Matthew Stier <Matthew.Stier@fnc.fujitsu.com>

Casper Dik wins the prize (as usual, eh? :) ).

It's in the FAQ, naturally:
3.57) How can I have more than 128 X windows clients?
    When you get the following errors, you've run out of X sockets.
        Xlib: connection to :0.0 refused by server
        Xlib: maximum number of clients reached
    By default, the X server has a limit of just 128.  In order to
    increase this limit, you need to run at least Solaris 8 or an
    earlier release with the Xserver patch applies that fixes bug:
        4185418 the X server should support more connections
    Then change the Xservers configuration file and add the "-clients 1024"
    option to the X commandline.

Since I'm running Solaris 8, I can change max clients.

-Adam

On Mon, 29 Jul 2002, Adam and Christine Levin wrote:
>
> I've got a Sun Blade 100 running Solaris 8 "5.8 Generic_108528-13".
>
> I've got plenty of file descriptors:
> $ ulimit -a
> core file size (blocks)     unlimited
> data seg size (kbytes)      unlimited
> file size (blocks)          unlimited
> open files                  256
> pipe size (512 bytes)       10
> stack size (kbytes)         8192
> cpu time (seconds)          unlimited
> max user processes          7893
> virtual memory (kbytes)     unlimited
>
> I've got plenty of pty's (the problem is X clients, *not* strictly xterm
> -- I can't open Star Office or the calculator app or anything).
>
> I'm getting the old error:
> $ xterm
> Xlib: connection to ":0.0" refused by server
> Xlib: Maximum number of clients reached
> xterm Xt error: Can't open display: :0.0
>
> Now I looked in the archives and I see there was (is?) a hard limit of 128
> clients, but that 80 is around the practical limit, no info as to why.
>
> Most of my clients are xterms, but I've also got a few small apps running
> (xclock, xbiff, gaim, netscape, mozilla).
>
> Total, I've got 69 client windows spread across 12 workspaces in CDE.
>
> Questions:
> 1) Shouldn't I be able to get more than 69 client windows running?  Does a
> window occupying more than one workspace count towards multiples?  In that
> case, I've got 91 (the clock and biff windows occupy all workspaces).
>
> 2) Is the X version that ships with Solaris 8 still constrained by the 128
> client max?
>
> 3) Is there any hope for me (either getting more clients or gaining back
> my sanity and closing some windows occasionally)?
>
> Thanks,
> -Adam
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Mon Jul 29 11:34:21 2002

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:50 EST