I have set <memoryUsage percentOfJvmHeap="50" /> and it still used up
all heap memory and the server can do nothing but gc. I have set max
heap size -Xmx1g
all the messages I sent are TextMessages. I suspect that there exists
bug in estimating memory usage.
jmap -histo result is: