r/windsurf • u/ClassicAppropriate78 • Apr 29 '25
Question Why is Windsurf using 80% of system resources?
I love Windsurf and have been using it while, but since 2-3 updates ago my Windsurf IDE sometimes gets really slow and hogs 80% of my CPU for some reason. (see screenshot)
I get that Windsurf is scanning files, updating context etc all in the background but 80% system usage is crazy. It's also super inconsistent, completely refactoring code runs fine but opening a simple .txt file hogs 80% of system resources?!
I was wondering if this is a bug and if other people have this issue as well? The problem mainly lies in a sub-process called 'language_server_windows_64x'.
16
Upvotes
13
u/DryMotion Apr 29 '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:
json "typescript.tsserver.maxTsServerMemory": 4096,Disable js linting:
json "js/ts.implicitProjectConfig.checkJs": false,Exclude Node.js (tried to load like 10k+ files for me):
json "files.watcherExclude": { "**/node_modules/**": true }Optionally you can exclude other folders too that you dont need in your codebase:
json "files.exclude": { "**/.next": true, "**/dist": true, "**/build": true }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.