r/Codeium • u/Practical_Mongoose69 • Apr 22 '25
Very High CPU and RAM usage non-stop
Hi guys!
It's normal during the Windsurf usage the CPU be at 100% in ALL CPU's and with almost 5gb RAM allocated? I'm not even doing something right now, just sitting a with some React components opened and no server (react / node / docker database) running at all.
This is not the first time that happens something like that. Normally when i type or import things too fast in the editor this starts to happen, sometimes is just a spike but in not uncommon to be locked into this 100% state and needing to kill the application
I'm using Macbook Air M2 8gb RAM (MacOS 15.5).




5
u/valentino99 Apr 22 '25
Bro, with 8GB ram on a MacBook, is pretty much just for browsing. You will need to close apps all the time. I am not saying that you are wrong, windsurf probably has a memory leak.
2
u/infalleeble Apr 23 '25
i notice on desktop (windows gaming rig) that it slows down significantly when a chat gets long. starting a new chat really speeds things up. on my macbook air 16gb i keep a pretty recent chat for that reason
2
u/PuzzleheadedAir9047 Apr 23 '25
The memory is filled with Typescript Language Server in most of the cases. Can you check the running processes? Closing unnecessary files and restarting usually clears the memory. Let me know if it worked.
1
u/luke850000 Aug 26 '25
The same on m4 max and 128gb, sometimes need to restart windsurf, its unusable
2
u/turkert Apr 23 '25
It happens time to time.
I am just a little bit luckier, it runs on my server not on my M2 Mac Air :)
1
u/Herobaymax2003 Apr 23 '25
Maybe try uninstalling and reinstalling windsurf? Cause it once fixed a few issues I faced in it
1
u/PsychonautAlpha Jun 17 '25
Having this same problem on my Surface Pro 7 16GB RAM. I haven't had any problems with this until I downloaded the latest update and restarted the IDE. Now I can't even just code normally without it eating up all my memory. Can't seem to find any support that can shed some light on the issue, but it is a new behavior for my machine, and I've been running Windsurf and Cascade fine until this week.
1
u/No_Client_9343 Mar 31 '26
Tried all possible hacks to it even forcing env on windsurf but didnt help with it.
I n the end i just snaped, got OS based processor manager from git:
https://github.com/lowleveldesign/process-governor?utm_source=chatgpt.com
and ran command:
Start-Process powershell -WindowStyle Hidden -ArgumentList "-Command
"$done=@{}; while($true){ Get-Process language_server_windows_x64 -ErrorAction SilentlyContinue | Where-Object Path -match 'Windsurf' | ForEach-Object { if(-not$done[$_.Id]){ procgov.exe --nowait --minws 10M --maxws 4400M -p$*.Id 2>&1 | Out-Null;*$done[$.Id]=$true } }; Start-Sleep 5 }""This command will silently watch it in background. If you try to limit it via PID it will fail due to crashing and restarting. The only possibility that worked is to constantly track it. It will work untill you restart pc and than you will need to re run command. This part of command "--maxws 4400M" is where you determine how much you will allocate to it, where 4400M is amount of MB
Now my coding experience with windsurf is slightly improved, but knowing this language server assumes more memory = more speed still hangs in my mind.
Windsurf team should enable env based governing within windsurf settings for users to determine max memory allocation to language server or seriously look into it and how it assumes what is ideal amount of memory.
0
u/Practical_Mongoose69 Apr 22 '25
+Info: After writing this post and going back to the Windsurf, this process has reach +6gb RAM. Probably has some serious memory leak.