dklab_realplexor icon indicating copy to clipboard operation
dklab_realplexor copied to clipboard

Few first messages do not arrive when there is more then 300 connections

Open lwilczak opened this issue 10 years ago • 4 comments

Hi, i'm working on chat, which is based on realplexor. When there is about 200 users (connections) online everything is ok, but when its growing and its 300+ then for first few seconds messages do not arrive for new logged in user. Generally: when there is 300+ connections to server, new connection is created, then for few seconds messages sent to new connection do not arrive. Administrator of server says, that process of realplexor uses 100% processor.

What can i do with it, how can i debug it? Do you think, upgrade to newest version could help?

lwilczak avatar Apr 17 '14 18:04 lwilczak

Do you use С++ version? (Perl version is only a prototype, not for production.)

On Thursday, April 17, 2014, Łukasz Wilczak [email protected] wrote:

Hi, i'm working on chat, which is based on realplexor. When there is about 200 users (connections) online everything is ok, but when its growing and its 300+ then for first few seconds messages do not arrive for new logged in user. Generally: when there is 300+ connections to server, new connection is created, then for few seconds messages sent to new connection do not arrive. Administrator of server says, that process of realplexor uses 100% processor.

What can i do with it, how can i debug it? Do you think, upgrade to newest version could help?

— Reply to this email directly or view it on GitHubhttps://github.com/DmitryKoterov/dklab_realplexor/issues/32 .

dimikot avatar Apr 17 '14 21:04 dimikot

Yes, its Perl version. It was applied by previous developer over 2 years ago. Thanks for suggestion. Will change version and will see it helped. Thanks

lwilczak avatar Apr 18 '14 13:04 lwilczak

We changed version to C++, and everything now works fine! Proces use processor normally, nad there is no missing messages. Thanks for help.

lwilczak avatar Apr 25 '14 06:04 lwilczak

I also recommend to setup nginx in front of realplexor, because realplexor does not support tcp output stream buffering for now (it's in todo). Such buffering is a subject nginx is good at.

On Friday, April 25, 2014, Łukasz Wilczak [email protected] wrote:

We changed version to C++, and everything now works fine! Proces use processor normally, nad there is no missing messages. Thanks for help.

— Reply to this email directly or view it on GitHubhttps://github.com/DmitryKoterov/dklab_realplexor/issues/32#issuecomment-41363879 .

dimikot avatar Apr 25 '14 07:04 dimikot