I have been using JProbe, and in the application, the ActiveTile class is using tons of memory, and total memory usage increases, then when a GC is called it cleans it all.
Is there a way to stop this, and is it a memory leak? Also, what are some alternatives I can use to help solve this?
Here is the code:
This is the size of the "map" and the first part are the x coordinates, and the latter is the y coordinates:
ATM I am using this code to "clean" the tiles:
An average output is this, and it's being called ever minute:
TileClean: Memory before: 51985kb Memory after: 35570 (Freed: 16415kb) Time: 311ms Tiles Cleaned: 0
Here is a picture of a JProbe snapshot:
I hope this is enough information, and I hope you guys can help.