Hi Eric,
it would be great if you can monitor the memory usage using some
profiler tool or jmap/jhat and give us more details on objects (object
types), which consume memory. You can take several memory state
snapshots like initial, 1000 clients connected, 2000 clients connected,
3000 clients connected, so we can see the dynamics and figure out the
problem (if there is any).
Thanks.
WBR,
Alexey.
On 06/23/2012 04:48 AM, Eric Luong wrote:
> Hello,
>
> I've been testing Grizzly in Glassfish 3.1 by simulating a load of
> thousands of clients using long polling. I found what appears to be a
> bottleneck. As more clients are added, the memory usage of the server
> increases. However, after a certain point (2000 clients in my case,
> but I expect it would depend on hardware) the usage seems to taper off
> and plateau.
>
> I have been trying to figure out why the memory usage plateaus. Can
> anyone offer some insights, or suggest a way to investigate further?
>
> Thank-you!
>
> Eric