Hacker News new | ask | show | jobs
by sudoshred 259 days ago
My m1 16gb pro gets throttled (and manually restarted) every time vs code hits 100gb ram usage when running jest unit tests. Don’t know who to blame but 99% sure the problem is my source code and not the machine.
3 comments

Chrome eats all my resources too and I have 128GB of ram. Some pages like ClickUp and the Google cloud console (bigquery) eat something like 3-5GB
You’re chewing through 100GB of RAM on unit tests? What is filling your RAM? Are you sure that you don’t have a memory leak somewhere?
I’m certain it’s a memory leak, just not sure solving the problem is worth my time.
100gb ram usage? Why not build a pc?
Considering he's got a 16GB of RAM, this is virtual memory, and most programs don't need to keep it all loaded at all times (if they do, you'll notice with constant paging exception handling).
> My m1 16gb pro gets throttled (and manually restarted) every time