[SOLVED] how do you track down a RAM / memory leak?

Author Topic: [SOLVED] how do you track down a RAM / memory leak?  (Read 753 times)

My old town rp / city mod quickly causes blockland.exe to pile up with RAM usage.
It exceeds a couple GB then crashes after enough players have come and gone throughout the day.

I would assume GameConnection::autoadmincheck and gameConnection::spawnPlayer would be good places to start.  Any others?
What do I look for happening with the objects that shouldn't be?

SOLUTION:
Zeb figured out that system_RTB had been edited to communicate with DaProg's ORBs or something rather, creating file objects without deleting them.
I changed out to a fresh RTB and the memory leak is gone.

Thanks everyone.
« Last Edit: August 04, 2016, 11:10:00 PM by Tezuni 2.0 »



Once its built up a lot, you can try opening tree(); and take a look what objects are piling up

no
are you using a bunch of file objects, or using a script object and keep adding variables to it

How are you handling data saving? Are you creating script objects and not deleting them?

How are you handling data saving? Are you creating script objects and not deleting them?

If yes, delete all of that and use global variable arrays for data storage.