PDA

View Full Version : [SOLVED] Modify the MAXCLIENTS variable in Xubuntu



buryusadu
March 21st, 2018, 03:47 AM
Hello, I want to have a lot of programs opened at the same time, when i open about 50, i get this error:


"Maximum number of clients reached"

I found that modifying the MAXCLIENTS variable in /usr/include/xorg/misc.h Can let me open more processes, but that file doesn't exists in Xubuntu.

I'm using Xubuntu 16.04 LTS

Thanks in advance for the help.

kerry_s
March 21st, 2018, 04:06 AM
50? i believe you can just create the file.

i don't even have that many apps. lol

Holger_Gehrke
March 21st, 2018, 09:04 AM
It would surprise me very much if the value of a constant in a file that's meant to be included during the compilation of client programs had any influence on the running server without recompiling the server. There is an option MaxClients you can put into the Serverflags section of the xorg.conf which should do what you want. See the manual page ('man xorg.conf') for the details.

Holger

buryusadu
March 22nd, 2018, 03:54 AM
I figured how to do it

I had to install xserver-xorg-dev

then the file is finally in /usr/include/xorg/misc.h

and increasing the MAXCLIENTS variable works perfectly so i solved my problem.