Operating System - HP-UX
1832757 Members
3153 Online
110045 Solutions
New Discussion

Re: Does anyone know how to increase file descriptors for X-server?

 
SOLVED
Go to solution
Kevin Shea
Occasional Contributor

Does anyone know how to increase file descriptors for X-server?

The HP-UX 11.0 system I am working with uses a large number of X-server socket connections and I reach a point where I can't display any more X-windows. I thought the problem might be I was running out of file descriptors so I increased the max_number_of file descriptors allocated to the X-server to the max (374). I also bumped up the kernel parameter settings in the kernel for maxfiles and maxfiles_lim, but this didn't solve the problem. Anyone have an idea what the problem might be or how to work around the problem?
3 REPLIES 3
harry d brown jr
Honored Contributor

Re: Does anyone know how to increase file descriptors for X-server?

kevin,

what is nfiles set to?

live free or die
harry
Live Free or Die
Charles Slivkoff
Respected Contributor
Solution

Re: Does anyone know how to increase file descriptors for X-server?

Unfortunately, there is not a lot that can be done. The number of connection is limited due to X11 protocol. One suggestion that I can give is to effectively use multiple X servers. You can accomplish this using Xvnc (http://www.uk.research.att.com/vnc/xvnc.html), Xvfb (available via recent HP-UX X server patch), or Xnest (http://www.x.org).

Kevin Shea
Occasional Contributor

Re: Does anyone know how to increase file descriptors for X-server?

Thanks to Chuck for his reply. It confirms my suspicion that the file descriptor limitation is built into X11. I have looked at both VNC and Xnest to overcome the problem. BTW VNC uses 2 file descriptors per sesssion and Xnest uses only 1, so Xnest is superior in providing the most X-server connection capability but decided to use VNC because it provides more flexibility for remote displaying Windows and other platforms, not just UNIX.