I've deployed a very small microservice written in typescript running with bun to production and I've noticed that it's using ~600mb memory after a few days. It starts out only using ~150mb but slowly starts climbing up in memory usage. The service deals with at most a few request per day, but even over periods with no requests, memory usage still climbs. This microservice runs elysiajs with just a few (2) routes and connects to a psql database using drizzle.
I have a very similar separate microservice that handles a lot more requests running with node.js, and it's only consuming 70mb.
Any pointers on how to debug the memory usage? can provide more info if needed.