Cursor-server using massive memory

I switched from vscode to cursor, and my server crashes very often. Then I switch back to vscode and my server never crashes! seems like cursor is the cause