getcursor / cursor

The AI Code Editor
https://cursor.com
22.67k stars 1.46k forks source link

High Memory Consumption Leading to Process Being Killed by OOM Killer #1009

Open khaled-wsa opened 10 months ago

khaled-wsa commented 10 months ago

Technical Details:

Expected Behavior The application should manage memory efficiently, preventing the system from running out of memory and avoiding process termination by the OOM killer.

Actual Behavior The application’s Node.js process is consuming excessive memory, leading to the system running out of memory and the process being terminated by the OOM killer. [The server suddenly lags and everything stops, and when I reviewed the logs this is what I found:]

Error Messages:

Oct 23 20:38:46 [HOSTNAME] kernel: [36960.850877] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=user.slice,mems_allowed=0,global_oom,task_memcg=/user.slice/user-0.slice/session-18.scope,task=node,pid=23128,uid=0
Oct 23 20:38:46 [HOSTNAME] kernel: [36960.850901] Out of memory: Killed process 23128 (node) total-vm:1514564kB, anon-rss:997872kB, file-rss:1108kB, shmem-rss:0kB, UID:0 pgtables:5996kB oom_score_adj:0

-- I'm not sure if this is also caused by an extension I have that I moved with me from visual studio, but I just turned off 90% of my extensions and I'm waiting, if this behaviour is repeated, I will update this report.

jakobFNF commented 10 months ago

Please let us know if the same thing happens with the extensions disabled. It will be very helpful. Thank you!

truell20 commented 10 months ago

What version of Ubuntu are you running this on?

truell20 commented 10 months ago

I'm not sure if this is also caused by an extension I have that I moved with me from visual studio, but I just turned off 90% of my extensions and I'm waiting, if this behaviour is repeated, I will update this report.

Any update?

truell20 commented 10 months ago

0.13.4 included a change that squashed an edge case memory bug. Please let me know if you still see issues on or above that version!