The number of clients is not the same thing as the number of connections. I am unsure how things work under the hood, but that's what I found while attempting to solve my own problem. To find out the number of connections you can try: sudo lsof -c X | grep socket | wc -l or netstat -an --unix | grep X11-unix | wc -l