Originally Posted by ESK0
Actually its not a memory leak.. the ArrayList is used later
If you will delete the ArrayList.. it wont work anymore
It is: dump handles, change map, dump again and u will see that your created ArrayList is still there and they are not used again, because u created new ArrayList.
After some time (like 1-2 days after server start) my server consume approx. 200 MB more memory and there is A LOT of ServerAdvertisements handles with the same size.
U should delete existing handles on MapStart, if u want i can give you my code that fix that.