adj5672 opened a new pull request, #936: URL: https://github.com/apache/tomcat/pull/936
In my app, I use WsWebSocketContainer to create websocket client. When session count increase the more, memory usage also increased. So OOM Killed occured frequently. I know that It is a normal situation in thread per connection model which is current applied. Current model have advantage that It is very intuitive and sometimes it behaves like kind of rate limiter. But I think that thread for RW task may not working busy in some case. Also platform thread will be created twice of session count and it allocate a lot of default stack memory. furthermore context switching cost expensive too when using platform thread. So I think that instead of create two platform thread per session, using virtual thread will be helpful to memory optimization. Since I may not understand overall about websocket codes and architecture, I just create draft pull request. The point is optimizing memory usage even if virtual thread isn't. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
