activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Li Li <>
Subject Re: server hang because of memory usage estimate not accurate?
Date Fri, 28 Mar 2014 07:30:39 GMT
sorry max heap is 1G, not 4G

On Fri, Mar 28, 2014 at 3:23 PM, Li Li <> wrote:
> I am using the default configuration(maximum 4G heap) and <memoryUsage
> percentOfJvmHeap="70" />
> I send many small size TextMessages to server and it hangs
> I use jmap -heap and found that the free memory is less than 100MB and
> the server can do nothing but do gc. but gc can't free anything.
> client can't even connect to server.
> I use ./bin/activemq stop and it fails to stop server.
> I have to kill -o pid
> I guess the reason is that: activemq estimate memory by string size.
> but for small trings, the heap are all small fragmentations.
> I modify percentOfJvmHeap to 50 and it works better but after long
> time, it still occurs.

View raw message