r/Codeium • u/HeeyBob • Apr 11 '25
language_server_linux_x64 always eats CPU
I run Windsurf on Ubuntu 24.04, and I have a problem where the language_server_linux_x64 process is never idle, even if I'm not using Windsurf for hours. It still sits there and consumes maybe 75% of a CPU. This makes my laptop run hot with the fan blaring all the time.
This behavior persists across different projects, whether Python, tsx, or whatever. It also persists across Windsurf installs. It has done this for me for several months, and I'm up to date on all the updates.
Has anyone else seen this? Is there a way to fix it? It seems really weird that the language server would be so busy forever.
2
u/DryMotion Apr 12 '25 edited Apr 12 '25
I had this issue on mac as well. The language_server process sometimes goes crazy trying to load your entire codebase into ram and scanning files in the background constantly.
Its actually quite a simple fix, you just need to add some usage limits to your
settings.json(workspace or user):Click
CTRL + SHIFT + Pto open the command palette. Go toPreferences: Open User Settings (JSON).It should open a JSON file with a couple of entries. Just add this below:
Limit memory usage, adjust as needed, here 4gb for me:
Disable js linting:
Exclude Node.js (tried to load like 10k+ files for me):
Optionally you can exclude other folders too that you dont need in your codebase:
This is what fixed it for me, hope it works for you as well. You will need to close Windsurf and kill the language_server process after sving these settings tho for them to work properly.
1
u/Glittering_Complex11 May 06 '25
Same issue here on Linux. I have to always reload the window when it happens. Im gonna switch back to VS Code Copilot.
1
u/PsychonautAlpha Jun 17 '25
This problem just started occurring for me this week. I've been using Windsurf for a few months, and it seems like the problem only started occurring when I re-loaded the IDE after the update. The only other thing that I can think of that might be contributing to the issue is that I recently added the Solargraph extension to my Ruby project around the same time that the issue started happening, but I'm a bit in the dark about how that could be contributing to the issue.
Even as I type this, language_server_windows_x64 is chewing up 70-80% of my memory.
1
u/Dizzy_Ad2866 Mar 20 '26
Title: Security, transparency, and indexing-control concerns in language server behavior
I investigated the language server behavior in my local development environment and found multiple issues that raise serious concerns around security, transparency, user control, and system efficiency.
This is not a large project. The codebase contains fewer than 400 files, the machine has 24 GB of RAM, and telemetry was disabled. Even under those conditions, the language server still showed unexpectedly heavy behavior. That alone is concerning. What made it significantly worse was discovering what appears to be an API key present within the language server context or related local state during inspection.
From a security perspective, that is unacceptable. Sensitive credentials should not be exposed, embedded, cached, surfaced in inspectable state, or otherwise made discoverable through normal investigation. If this is expected behavior, it reflects a poor security model. If it is unintended, then it is a serious vulnerability.
In addition, indexing behavior appears to be far too opaque and insufficiently under user control. Indexing should not operate as a black box that the user has to work around manually. It should be transparent and directly controllable in the interface, with clear options such as:
At the moment, the only effective mitigation I found was to make the folder invisible to the language server. That is not a real solution. It is a workaround. Users should not have to hide project directories just to prevent undesirable indexing or background processing.
Main concerns
Why this matters
This raises concerns in four areas:
Severity
I would rate the credential exposure concern as high priority because any unintended exposure of an API key is a security issue, not merely a design inconvenience.
I would also rate the indexing-control problem as a significant product design issue, because users should have direct authority over background indexing and visibility into what the tool is doing.
Shorter version for a ticket
I am seeing unexpectedly heavy resource usage from the language server on a machine with 24 GB RAM and a project with fewer than 400 files. Telemetry is disabled, so that should not be the cause. More seriously, during investigation I found what appears to be an API key present within the language server’s accessible local state or related context. That is a major security concern. Sensitive credentials should not be exposed or discoverable in this way.
Separately, indexing behavior appears too opaque and insufficiently controllable. Users should have clear, visible controls to enable or disable indexing, restrict it to selected folders, exclude directories, and inspect current indexing activity. The only workaround I found was to make the folder invisible to the language server, which is not an acceptable long-term solution.