I think I'm encountering this too.
From what I can see each time I get a steam notification popup the number of unix sockets increases for Xorg and steamwebhelper and never goes down. So perhaps the windows for notifications aren't being closed correctly?
I'm seeing this as well. At some point the system journal gets filled with "Maximum number of clients reached" and I become unable to open any new windows until I close steam.
Your system information
Same thing occurring to me.
Manjaro, latest stable branch.
/etc/X11/xorg.conf.d sudo ss -x src "*/tmp/.X11-unix/*" | grep -Eo "[0-9]+\s*$" | while read port ✔ 9s
do sudo ss -p -x | grep -w $port | grep -v X11-unix
done | grep -Eo '".+"' | sort | uniq -c | sort -rn
141 "steamwebhelper"
9 "Discord"
8 "steam"
5 "skypeforlinux"
5 "chrome"
3 "teams"
3 "kglobalaccel5"
3 "kded5"
2 "python"
2 "ksmserver"
2 "kscreen_backend"
2 "java"
Same here. steamwebhelper had almost 200 connections open with Xorg after leaving it open for a few weeks.
Restarting steam brought it down to a more manageable ~10
Also getting this. Typically only if the client has been open for several days. As friends start games and I get the notification, I can watch the count increase for "steamwebhelper" every time.
Arch, Kwin, Wayland, non-beta Steam client
[static@static-desktop ~]$ sudo ss -x src "*/tmp/.X11-unix/*" | grep -Eo "[0-9]+\s*$" | while read port; do sudo ss -p -x | grep -w $port | grep -v X11-unix; done | grep -Eo '".+"' | sort | uniq -c | sort -rn
[sudo] password for static:
226 "steamwebhelper"
11 "steam"
2 "ksmserver"
1 "xembedsniproxy"
1 "kded5"
1 "kaccess"
1 "gmenudbusmenupr"
1 "firefox"
Same on SteamOS/SteamDeck. I have 1000 friends, for me it only takes a hour to happen
$ lsof -U +c 15 | cut -f1 -d' ' | sort | uniq -c | sort -rn | head -3
297 steamwebhelper
258 Xorg
The lsof command is a slight overcount because it includes all sockets from steamwebhelper, not just connections to xorg. It still shows the notification leak behavior described though.
Verified this bug is still present since I just had to restart steam to be able to use my PC.
Steam Version: 1716584667
Steam Client Build Date: Fri, May 24 4:48 PM UTC -05:00
Steam Web Build Date: Fri, May 24 4:31 PM UTC -05:00
Steam API Version: SteamClient021
I just encountered this problem today after leaving Steam running for weeks. Restarting Steam shows client counts similar to those that @kotarou3 shared in an earlier reply.
This happens if steam is left open for a few days for me. Luckily because of other problems with the steam client, I routinely have to killall steam & friends more often than that. So its a bit rare it survives that long and I run into this again lol
It seems like its a universal problem, but some more data points:
OS: Artix Linux x86_64
Kernel: 6.9.8-273-tkg-bore
CPU: AMD Ryzen 9 7950X
GPU: AMD ATI Radeon RX 7900 XT
WM: Awesome
this happens regardless if i close steam or not. when running a command like:
sudo ss -x src "*/tmp/.X11-unix/*" | grep -Eo "[0-9]+\s*$" | while read port
do sudo ss -p -x | grep -w $port | grep -v X11-unix
done | grep -Eo '".+"' | sort | uniq -c | sort -rn
the result showed that steamwebhelper had 224 clients open. killing steam with pkill steam -f obviously results in the issue being temporarily fixed. the problem is gonna come up again when steam has been opened one too many times because it doesnt kill the clients it creates after a new one is opened.
Adding my two cents here, just starting having this issue as well. It wasn't noticed right away as I had usually been shutting down my rig when going to bed.
Hello,
We have observed this on occasion, but we have not been able to reproduce with any reliability in order to investigate.
If you are still experiencing this problem with the latest Steam beta client, please chime in and provide the usual info (https://github.com/ValveSoftware/steam-for-linux/blob/master/issue_template.md)
Steam client version: 1723685248
Distribution: Ubuntu 24.04 LTS amd64
Opted into Steam client beta: yes, Steam Families Beta
Have you checked for system updates: yes, up to date
Steam logs: steam-logs.tar.gz
GPU: Nvidia GeForce RTX 4080 SUPER
All you have to do in order to reproduce the issue on my machine is to just wait a very long time with Steam opened. After some time you will not be able to open any app including Steam games. Closing Steam and reopening it resolves the issue.
Hello @suprovsky,
All you have to do in order to reproduce the issue [..]
Do you confirm that you can still reproduce this with version 1723685248?
Your logs suggest that the last time you experienced this problem was on July 21st. We believe more recent builds (Aug 14th or newer) are no longer affected.
No, recently it's not been happening. Let me leave my PC up and running for a couple of days and we'll see if it's a problem still.
This bug happens for me recently, so apparently it has not gone away...
Suddenly getting the same issue. Leaving Steam open a few hours and windows won't open anymore, the NVIDIA X server settings app becomes empty and I'm getting the error "Maximum number of clients reached" in a third-party app that regularly spawns/closes invisible windows, until I close Steam and everything goes back to normal.
If I try opening Steam again, the issue reoccurs instantly. Note that when Steam is closed, I can open as many windows as I want and the NVIDIA x server settings app is showing normally.
Linux Mint 22.3 Cinnamon
I started getting the same issue after updating steam as well. It no longer takes a few weeks -- it only takes a few hours.
Also Linux Mint 22 Cinnamon.
Also occurring on Debian 13 on linux-6.18.15 in X11. For me if the issue is already happening, closing Steam and trying to reopen it causes it to happen again instantly, making Steam and all other applications unusable until I kill all Steam processes including the Proton wineserver, but Steam and also Lutris (since it also uses Proton) won't open back up. After a computer restart it has a brief moment of stability again.
Maximum number of clients reached... 😢
Got the same here after updating Steam on Ubuntu Noble.
Edit: I think it could be something else with Ubuntu, I've seen the same issue again today where no apps can create windows but Steam wasn't opened. After closing every open windows, the other apps seems to be working again...
But on the other hand, now opening Steam results in
[2026-05-16 18:29:17] Set status message: Verifying installation...
[----] Verifying installation...
[2026-05-16 18:29:18] Verification complete
UpdateUI: skip show logo
[2026-05-16 18:29:18] Destroy window
Steam logging initialized: directory: /home/madrang/.steam/logs
[2026-05-16 18:29:18] ProcessNextMessage: socket disconnected
[2026-05-16 18:29:18] No more messages are expected - exiting
Maximum number of clients reached
Maximum number of clients reached
Unable to open display
Unable to open displaycrash_20260516182918_5.dmp[858364]: Uploading dump (out-of-process)
/tmp/dumps/crash_20260516182918_5.dmp
crash_20260516182918_5.dmp[858364]: Finished uploading minidump (out-of-process): success = yes
crash_20260516182918_5.dmp[858364]: response: CrashID=bp-066dad42-e7e8-4c1f-b696-650af2260516
crash_20260516182918_5.dmp[858364]: file ''/tmp/dumps/crash_20260516182918_5.dmp'', upload yes: ''CrashID=bp-066dad42-e7e8-4c1f-b696-650af2260516''
/home/madrang/.steam/steam.sh: line 966: 858344 Segmentation fault (core dumped) "$STEAMROOT/$STEAMEXEPATH" "$@"
When yesterday it was only spamming Maximum number of clients reached until I force closed it...
Happening for me as well. Breaks my screenlocker too...
Linux 7.0.5-2-MANJARO - X11 21.1.22-2 - XFCE 4.20.4-1 - steam 1.0.0.85-6
also getting this error, this actually gets bad enough to take down my system such that a clean reboot is not possible and i have to use the power switch.
Linux 6.12.88+deb13-amd64
Debian 6.12.88-1 (2026-05-15) x86_64 GNU/Linux
PRETTY_NAME="Debian GNU/Linux 13 (trixie)"
NAME="Debian GNU/Linux"
VERSION_ID="13"
VERSION="13 (trixie)"
VERSION_CODENAME=trixie
DEBIAN_VERSION_FULL=13.5
ID=debian
kwin 6.3.6
x11
Steam Beta Branch: Stable Client
Steam Version: 1778281814
Steam Client Build Date: Fri, May 8, 2026 18:40 UTC -08:00
Steam Web Build Date: Fri, May 8, 2026 18:34 UTC -08:00
Steam API Version: SteamClient023
further testing revealed this is an electron application issue. mine was coming from discord, which is leaking X11 connections.
further testing revealed this is an electron application issue. mine was coming from discord, which is leaking X11 connections.
Wow, yep, killing Discord allowed Steam to start up on my system (Ubuntu 24.04 LTS, Nvidia GPU, KDE Plasma). Huh...
I was seeing the "Maximum number of clients reached" error, but not seeing "Error: Can't open display: :0" part, but this solved the problem for both Steam and the game I was trying to launch. Thanks!
yeah steam does not seem to mention the display :0 part in it's console output. you just get max clients reached, mind it isnt the only application that does that. when you reach max client connections try opening something like the heroic launcher. it gives the same error in it's console output.
Wow, yep, killing Discord allowed Steam to start up on my system (Ubuntu 24.04 LTS, Nvidia GPU, KDE Plasma). Huh...
I was seeing the "Maximum number of clients reached" error, but not seeing "Error: Can't open display: :0" part, but this solved the problem for both Steam and the game I was trying to launch. Thanks!
I do want to mark the importance of the fact that by closing Discord, you opened up at least one space for an X client which allowed you to open Steam in the first place. While I don't want to discredit the idea that somebody at Discord made a fuck-up when they pushed the update that allows it to update on its own instead of requiring you to download a new .deb each time, it may have been coincidental and worth monitoring over time. Similarly, if it were Electron itself, I also use Element/Riot and it has not proven to be a problem.
having the same issue.
restarting steam and discord solved the issue for now but it seems something is leaking over time?
to check the connections i used:
sudo ss -x src "*/tmp/.X11-unix/*" | grep -Eo "[0-9]+\s*$" | while read port; do sudo ss -p -x | grep -w $port | grep -v X11-unix ; done | grep -Eo '".+"' | sort | uniq -c | sort -rn
lists all the active client connections.
i wonder whats the default? 256?
edit: seems discord is the culprit thats leaking indeed.
started at 11 connections and after half an hour its 21 connections now
21 "DiscordCanary"
11 "steamwebhelper"
9 "steam"
7 "tidal-hifi"
3 "mate-menu"
2 "xdg-desktop-por"
i've been tracking usage with this command
while true; do echo "=== $(date) ==="; sudo ss -x src "*/tmp/.X11-unix/*" | grep -Eo "[0-9]+\s*$" | while read port; do sudo ss -p -x | grep -w $port | grep -v X11-unix; done | grep -Eo '".+"' | sort | uniq -c | sort -rn | head -5; sleep 300; done | tee ~/x11-monitor.log
and i have been observing that discord ticks up 1 connection about every 5 minutes. this is why i am sure this isnt a steam issue.
Thanks to @yowshi 's command, I can reproduce the same result. The root cause is indeed the Discord desktop client (discord-1.0.136.deb).
I'm seeing the exact same behavior with @yowshi 's command. I've also tested with a .deb install and a flatpak install; Same behavior. I've left Steam running with the Discord app off and I haven't seen any issues when opening new clients.
the issue is a known issue with discord here
https://github.com/flathub/com.discordapp.Discord/issues/637
Great, it's a known issue. It's preventing me from logging in from sleep because Steam is using so many connections that it's preventing the login display window from coming up. Can we do something about this? It's making it such that I cannot leave steam running while logged out as I have to restart my entire UI and kill steam just to get back in.
Great, it's a known issue. It's preventing me from logging in from sleep because Steam is using so many connections that it's preventing the login display window from coming up. Can we do something about this? It's making it such that I cannot leave steam running while logged out as I have to restart my entire UI and kill steam just to get back in.
Did you read the above replies? Have you checked if Discord is the true issue and not Steam? I'd also check other Electron apps just in case if you aren't using the Linux Discord Desktop app.
Considering steam is requesting this often to the point its flooding my logs, let's call it a little of column A and B, then. Discord still running I can restart my UI and login, whereas steam still running I can't. May be true that discord is leaking handles, but there is some other issue here on steam's side that is certainly not helping. I have no way of checking if either of these apps are at issue because the source code to neither exists, or I'd submit a patch myself. It's been pissing me off for over a week.
May 24 19:46:27 dt-pc steam[5958]: Maximum number of clients reached
May 24 19:46:28 dt-pc steam[5958]: Maximum number of clients reached
May 24 19:46:29 dt-pc steam[5958]: Maximum number of clients reached
May 24 19:46:30 dt-pc steam[5958]: Maximum number of clients reached
May 24 19:46:30 dt-pc steam[5958]: Maximum number of clients reached
May 24 19:46:30 dt-pc steam[5958]: Maximum number of clients reached
May 24 19:46:31 dt-pc steam[5958]: Maximum number of clients reached
May 24 19:46:32 dt-pc steam[5958]: Maximum number of clients reached
Replying to https://github.com/ValveSoftware/steam-for-linux/issues/9561#issuecomment-4530642787
yes steam has to request X11 client connections in order to launch, so do the games it launches. IF something like discord is eating all available client connections then steam cant launch and nor could any game launch from steam.
electron applications are known to have issues with leaking X11 connections, discord is probably the culprit now though it could be some other electron application.
over on the discord thread, linked in my post above, i posted a script i use to monitor and restart discord when it uses to many connections.
importantly you need to kill the application before it eats up all 256 available x11 connections, default number for linux OS's. or however many is available after all your other applications have loaded.
my script has never been tested in sleep though, you may just have to close discord completly before putting your system to sleep.
the issue seems fixed on discord-canary. after running it for an hour the connection count hasnt increased yet.
i know its not a steam issue, but letting people know here. hopefully it will get into the stable discord soon also.
edit: looks like stable discord is fixed also with the JS change apparently. The actual native fix will arrive next week they say
Your system information
Please describe your issue in as much detail as possible:
I'm posting this as a separate issue from #9094 rather than commenting there because this seems like it might be another lookalike bug relating to X clients (I'll explain why I think that in a moment).
I've periodically entered a state where no GUI windows would spawn. When attempting to spawn something from the command line, an error like the following would result:
After researching the issue, I found a helpful comment with a command to run in order to figure out what processes had allocated the most X clients:
Based on the 917 clients associated with
steamwebh, it seems like the most plausible culprit. The actualsteamprocess has only 50 clients in comparison (unlike what was reported in #9094, where thesteamprocess was the one hoarding all of the connections).I can produce additional log files if any might prove to be helpful.