Memory problems caused by the messageBufferText CharBuffer in WSFrameBase.java

2016-06-21 Thread Afaf Zahkya
n the user mailing list mark mentioned that the reason the buffer doesn't shrink is to avoid gc churn which is a good point. The right question is ,would the gc churn be worse than the memory penalty ? On Tuesday, June 21, 2016, Christopher Schultz wrote: > Afaf, > > On 6/21/16 8:

Memory problems caused by the messageBufferText CharBuffer in WSFrameBase.java

2016-06-21 Thread Afaf Zahkya
Hello, I m using tomcat 8.0.21. I want to send *up* to 4 MB of text messages through a websocket connection to my tomcat server. I set the MaxTextMessageBufferSize to 4 MB.Now as a result, every time I open a websocket connection and I send a message , I can see that 4 MB are being allocated in