|
Page Created :
MINA :
Traffic throttling
Traffic throttling has been created by Julien Vermillard (Aug 22, 2008). Content:One of point of failure of massive asynchronous server is out of memory on growing read or write queues.
ReadNot sure if the solution is ok, but here the way it's done in MINA 2.0 : WriteWrite is by far the hardest issue. It's occuring when you are sending too much data on slower clients (mainly slower network). A good example is the way the problem is hitting Apache Diectory. When you do a somewhat big request (for example 2M bytes of result set), when the server write the result chunks, it can saturate the write queue and create an out-of-memory (OOM) error. A solution could be to send the data, wait for session write queue to be depleted, than process the next result chunk, but here we go in a 1 thread blocking model for pocessing a client query. |
Unsubscribe or edit your notifications preferences
