processone / ejabberd

Robust, Ubiquitous and Massively Scalable Messaging Platform (XMPP, MQTT, SIP Server)
https://www.process-one.net/en/ejabberd/
Other
6k stars 1.5k forks source link

received messages latency too high #4235

Closed zzzZLRzzz closed 2 weeks ago

zzzZLRzzz commented 2 weeks ago

Environment

Bug description

I build a server A as an xmpp client to connect to ejabberd sending messages to every other clients(one to many) As A's messages grows, ejabberd received message from A's latency grows. I found that ejabberd sent many "TCP ZeroWindow" to A when receiving messages. I want to know where is the limit?

licaon-kter commented 2 weeks ago

Clean up your config and put it on https://gist.github.com

Which Linux exactly? Are you stuck on 21.07? Latest is 24.02, which is 3 years newer.

Which clients did you use? Are they from Google Play or Apple Appstore? Is Push being used?

Any errors in ejabberd.log with loglevel: info ?

Do you use Mnesia or SQL? If SQL, any logs there?

etc, add more details

zzzZLRzzz commented 2 weeks ago

Clean up your config and put it on https://gist.github.com

Which Linux exactly? Are you stuck on 21.07? Latest is 24.02, which is 3 years newer. runing on apline 3.16.6

Which clients did you use? Are they from Google Play or Apple Appstore? Is Push being used? I'm using a client develop by golang, using "gosrc.io/xmpp".What did you mean "Is push being used"

Any errors in ejabberd.log with loglevel: info ? no error log in ejabberd.log

Do you use Mnesia or SQL? If SQL, any logs there? Mnesia

prefiks commented 2 weeks ago

Your client may be hitting traffic shaper limits (default config limits how much bandwidth each client can use, and it just slows rate of processing of messages from client when limit is reached). Check https://docs.ejabberd.im/admin/configuration/basic/?h=shaper#shapers for a way to change them.

zzzZLRzzz commented 1 week ago

thanks, I edit the shaper config and it works!