Hello.
Today I noticed a problem with a memory leak in the js client. The fact is that in the browser memory there are all objects that come with server updates and are not deleted from memory after their removal by the server. Every time a user moves around the game world, these objects accumulate and lead to significant memory costs.
Do you know the solution?
http://take.ms/xEAez - memory snapshot
JS Api version 1.2.0 (latest version also didn't help)
Java server version 2.12.0 (if it matters)
Thank you in advance for any help.
JS Api Memory leak
Re: JS Api Memory leak
Hi,
I am not sure on which basis you think those objects shouldn't be in memory.
Objects in memory can exist for longer than they need to, if the garbage collector doesn't need to reclaim space, so I am not sure how you're determining that what you see is indeed a memory leak.
Can you clarify?
Thanks
I am not sure on which basis you think those objects shouldn't be in memory.
Objects in memory can exist for longer than they need to, if the garbage collector doesn't need to reclaim space, so I am not sure how you're determining that what you see is indeed a memory leak.
Can you clarify?
Thanks
Re: JS Api Memory leak
Hello.
I made this conclusion on the basis of the fact that I have never seen a decrease in the number of these objects. They are constantly growing with every move of the player in the game world.
I made this conclusion on the basis of the fact that I have never seen a decrease in the number of these objects. They are constantly growing with every move of the player in the game world.
Re: JS Api Memory leak
Thank you for reporting this issue. We can confirm the memory leak, as MMOItems were incorrectly removed from the MMORoom.
You can get the updated API at the usual url: http://www.smartfoxserver.com/download/sfs2x#p=client
You can get the updated API at the usual url: http://www.smartfoxserver.com/download/sfs2x#p=client
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Who is online
Users browsing this forum: No registered users and 38 guests