Hello,
Do you use direct and mapped buffer pools in Smartfox server ?
I don't have much idea about them, and was reading a post about them.
I recently used visualvm and saw both buffer pools and memory allocated to them. When I tried to connect 30+ users from JS client, memory in both
pools increased and was not released when they left(disconnected).
I guess they are not even garbage collected because when I forced GC, their memory usage was not reduced.
When is their memory freed ?
Is this increases in memory and not freeing a cause of worry ?
Thank you
Usage of Direct and Mapped Buffer Pools
Re: Usage of Direct and Mapped Buffer Pools
pratts wrote:Hello,
Do you use direct and mapped buffer pools in Smartfox server ?
I don't have much idea about them, and was reading a post about them.
I recently used visualvm and saw both buffer pools and memory allocated to them. When I tried to connect 30+ users from JS client, memory in both
pools increased and was not released when they left(disconnected).
I guess they are not even garbage collected because when I forced GC, their memory usage was not reduced.
When is their memory freed ?
Is this increases in memory and not freeing a cause of worry ?
No, we don't use direct buffers.
keep in mind that there is no such thing as "forcing GC" in Java. You can simply signal the GC that now is a good time to clear up some memory, but the GC might ignore your notification anyway.
I don't think you should really worry. The server is battle-tested against hundreds of thousand of concurrent users and there's no known memory issues.
Cheers
Re: Usage of Direct and Mapped Buffer Pools
This is the above picture when I connected and logged in 99 users using JS client.
There are traces of HeapByteBuffer in the heap dump also. Do you use it, since you once mentioned that you use netty for websockets ?
Re: Usage of Direct and Mapped Buffer Pools
Could be Netty allocating some direct buffers. Still, there are no known performance issues related to Netty.
FYI, Netty is gone it in the upcoming 2.13 release. We have switched to Jetty for all web-related services.
Hope it helps
FYI, Netty is gone it in the upcoming 2.13 release. We have switched to Jetty for all web-related services.
Hope it helps
Who is online
Users browsing this forum: No registered users and 98 guests