update: opened an issue on gh with a lot more details https://github.com/oven-sh/bun/issues/18265
I have been noticing an unusual increase in memory consumption with my app and I can't figure out if it's my code. Last night I started measuring process.memoryUsage() and this screenshot is how it went overnight. The app is stale and not doing anything really... that's on purpose to see how that would affect memory.
It's really hard to figure out what's going on because it starts out okay and you can see GC happening every now and then, but then suddenly few hours later GC just gives up. Again, the app is not doing anything for the entirety of this period.
I don't have any dependencies. I even removed most of the functionality to see if that would make a difference but it didn't. I tried --inspect but it hasn't been helpful as there isn't an immediate increase, it takes hours for this to happen. Any tips on how to get to the bottom of this? I need to know where/what to look for... has anyone had luck dealing with this stuff?


