I've also confirmed this happening for a rust based bot
because its a rust bot i can easily re-create the entire wasm state & cleanup any bot data without resetting global but the heap doesn't shrink back down if i do that
so definitely something relating to the server having a memory leak or heap fragmenting, not something that my bot is leaking
the average rate for my bot on shard2 with ~180 rooms visible, 29 owned rooms and ~800 creeps is ~140 bytes per tick extra heap usage
not too bad, but over long global lengths times that is quite significant
considering its way worse for JS based bots the idea that its heap fragmentation is way more likely, since my heap usage went from 50% to 57% over the course of 350k ticks