getcursor / cursor

The AI Code Editor
https://cursor.com
25.55k stars 1.59k forks source link

Server Memory Utilization 100% #2352

Closed JackyGohSG closed 2 weeks ago

JackyGohSG commented 2 weeks ago

I'm running cursor on my Digital Ocean server, and i constantly get alerts on memory utilization at 100%. What could be the cause and how can I troubleshoot this? I have attached my htop screenshot.

Server: Ubuntu 20.0.4 LTS

image

wys-evan commented 2 weeks ago

I had a similar problem

JackyGohSG commented 2 weeks ago

@danperks saw that you help with issues, mind helping some bros out here? :)

danperks commented 2 weeks ago

When you say you are "running" on your server, do you mean you are running Cursor locally, and you are connecting to that server within Cursor, or are you running a whole VM in Digital Ocean, which is running Cursor itself?

I'm assuming the former, and if so, how are you connecting (ssh, tunnels, ect..)

JackyGohSG commented 2 weeks ago

Thanks for the fast response @danperks. In my case, i'm connecting to the server within Cursor through SSH

danperks commented 2 weeks ago

Hey,

We don't do much out of the ordinary with the SSH server, but there are a bunch of reports that this may be caused by a bad extension trying (and probably failing) to run on your server.

Can you confirm this still happens if you remove any extensions running on the SSH server (should be done in the extensions panel, as it differentiates extensions running on your PC vs the SSH server)?

JackyGohSG commented 2 weeks ago

@danperks i think i found out the reason why. its not an extension issue. but its when i try to SSH into the server root folder, it starts to take up ram. Could be due to cursor filewatcher or something?

This issue is resolved when I go into my projects folder.

danperks commented 2 weeks ago

It's quite possible Cursor is trying to indeed your whole opened folder, which would be the entire drive of your server!

I'll see about getting this detected, so it doesn't happen accidentally, but for now I'd avoid opening your whole drive in Cursor 😂

JackyGohSG commented 2 weeks ago

thanks @danperks! I shall proceed to close this now.

Solution: Don't use cursor to open your server root folder

Yiin commented 2 weeks ago

I don't agree that it is the best solution, I'd much rather prefer having a configuration option to choose what folders to watch or ignore. Currently I open a folder that contains multiple projects because sometimes I have to take a look at some of them and the usage of ram is killing my workflow to the point where I'm considering moving back to vscode for this project.

JackyGohSG commented 2 weeks ago

@Yiin perhaps there is a configuration that we could set within Cursor? I'm not sure about it since I just started using Cursor recently. The beauty of Cursor is it allows you to "speak" to your codebase which requires watching.

Maybe a .cursorignore like .gitignore would be good