#Code editor consumes excessive memory and the AI chat window lags severely after lengthy conversatio

33 messages · Page 1 of 1 (latest)

small mist
#

It was roughly ten or twenty rounds. After so many conversations, my chat history with this AI became very long, and then something terrible happened. My chat tool started freezing, or rather, the entire code editing page started freezing, becoming unresponsive for about five or six seconds, sometimes more than ten. So what should I do? Similarly, I found that using Cursor extensively... its memory consumption is incredibly high. I currently have two editor pages open, one for web scraping and one for writing projects, and these two editors are taking up several gigabytes, even 4 or 5 gigabytes of memory. That's outrageous; the memory usage is ridiculously high. I'm using Cursor on a macOS M1 Pro 32GB 26.4.

grand adder
#

Could you be more specific with the AI model you are talking too?

#

Are you aware of the context token limit

#

?

small mist
# grand adder ?

Hello, I'm using Claudesonnet 4.6, but this isn't related to the model, right? It's probably caused by the front-end page rendering consuming too much memory.

grand adder
#

Are you aware of your context usage?

small mist
grand adder
#

You also said Webscraping

#

Web scraping projects often generate thousands of files, temp outputs, logs, JSON dumps.
Cursor often watches all of them.

#

in your json file you should add exclusions.

small mist
#

What does this mean? It means that because of this cursor, it indexes the entire codebase, and I need to define an additional rule in the JSON to exclude it from indexing, right?

grand adder
#

Chatgpt says this is how an exclusion should be added:

  "**/node_modules/**": true,
  "**/.git/**": true,
  "**/dist/**": true,
  "**/logs/**": true,
  "**/data/**": true
}```

it will significantly lower your freezing
grand adder
#

let me know if your issue has resolved then

#

goodluck!

#

what

#

what is that chinese

small mist
#

Okay, okay. So, where is that JSON file? I think I have a solution to my problem. Then what? I was previously opening two cursor windows simultaneously, which caused high memory usage, around 3-4 GB. Do you think this is reasonable? Do you recommend opening two windows and running two projects simultaneously?

grand adder
grand adder
#

this will make it much better

small mist
#

Okay, thank you for your reply. Are you the person in charge of cursor? How about we add each other as friends so we can contact each other if we encounter any problems? Thanks!

grand adder
small mist
#

Okay, I wish you all the best.

grand adder
hollow kestrel
#

Hey @small mist, Macos ram issues are common, not closing Cursor properly can leave orphaned extension-host processes, consuming extreme RAM (40-100+ GB), to fix it, be sure to close cursor everytime with Cmd+Q instead of relying on the red X

#

If this doesn't fix your issue, we'll figure out this issue together

#

It will be great to have your cursor version info if you don't mind

small mist