<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

a) why is it bad to have many x client connections?<br></blockquote><div>Because it is a limited resource, AFAIK the limit is compiled into XServer, so it's not even possible to change it without building custom server from patched sources.<br>
 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
b) what is a x client connection used for?<br></blockquote><div>As far as I remember from libX11 programming (which was about 15 years ago), each application going to use Xwindow first obtains the server connection, then creates something like a GUI context using that connection, and then uses the context in all GUI functions i.e. for creating windows, drawing, painting text and so on.<br>
Usually, as Firefox example shows, it is enough to init only one connection per application.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

c) what is the default "maximum number of x clients"?<br></blockquote><div>As I found in google, it is usually 128 or 256.<br><br><br>The whole issue is quite strange actually.<br><br>Just tried to launch new kdevelop, didn't open any windows, just single main window with last used session open. And it already takes 23 connections. Probably Qt is leaking, and this explains hundred or two of plasma-workspace connections.<br>
</div></div><br clear="all">I've also upgraded to 4.6.2 (on Ubuntu Maverick ) and it didn't help at all.<br>Meanwhile at home I have 4.5.x on OpenSUSE and no descriptor leak observed (a bunch of other KDE bugs instead :) )<br>
<br>-- <br>Best regards,<br>Konstantin.<br>