Comments (5)
There is no limit on max number of open connections for Bosh in Tigase (with exception of limits of the server, like CPU or memory).
However, each port of Tigase XMPP Server has a limit on number of connections established in each second. For Bosh that is 1000 new connections per second. However, as each Bosh XMPP stream consists of multiple HTTP connections (each stanza exchange is a separate connection), it might occur that you reached this limit with 300 users connecting very fast or exchanging a lot of data (ie. during XMPP connection establishment).
You could try to raise this limit to 2000 with following configuration:
bosh {
connections {
5280 () {
'new-connections-throttling' = 2000
}
}
seeOtherHost {}
}
from tigase-server.
There is no limit on max number of open connections for Bosh in Tigase (with exception of limits of the server, like CPU or memory).
However, each port of Tigase XMPP Server has a limit on number of connections established in each second. For Bosh that is 1000 new connections per second. However, as each Bosh XMPP stream consists of multiple HTTP connections (each stanza exchange is a separate connection), it might occur that you reached this limit with 300 users connecting very fast or exchanging a lot of data (ie. during XMPP connection establishment).
You could try to raise this limit to 2000 with following configuration:
bosh { connections { 5280 () { 'new-connections-throttling' = 2000 } } seeOtherHost {} }
The CPU and memory are normal, but the phenomenon is that the BOSH port cannot be accessed for a short period of time, and it will heal itself after a while
from tigase-server.
What you are describing would suggest that you are hitting throttling limits.
from tigase-server.
What you are describing would suggest that you are hitting throttling limits.
I raised the limit on the number of connections, but the problem still persists,Does the value of this parameter represent the actual number of connected users?
bosh {
connections {
5280 () {
'new-connections-throttling' = 2000
}
}
seeOtherHost {}
}
The final configuration is as follows in config-dump.properties,are there any other parameters that need to be adjusted, for example, 'bosh-close-connection' = false
bosh (class: tigase.server.bosh.BoshConnectionManager) {
'batch-queue-timeout' = 100L
'bosh-close-connection' = false
'bosh-extra-headers-file' = 'etc/bosh-extra-headers.txt'
'bosh-session-close-delay' = 0L
'client-access-policy-file' = 'etc/client-access-policy.xml'
compId = 'bosh@zhongfa-im-server-6d478594b9-lssm7'
'concurrent-requests' = 2
connectionDelay = 2000L
'cross-domain-policy-file' = 'etc/cross-domain-policy.xml'
defHostname = 'zhongfa-im-server-6d478594b9-lssm7'
'elements-number-limit' = 1000
'hold-requests' = 1
ifc = [ '*' ]
'incoming-filters' = [
tigase.server.filters.PacketCounter@4cd2e097
]
last_minute_bin_limit = 20971520L
last_minute_packets_limit = 2500L
'max-batch-size' = 15
'max-inactivity' = 10L
'max-queue-size' = 75161
'max-session-waiting-packets' = 100
'max-wait' = 30L
maxInactivityTime = 600000L
'min-polling' = 10L
'net-buffer' = 2048
'net-buffer-limit' = 2097152
'outgoing-filters' = [
tigase.server.filters.PacketCounter@73581c54
]
'packet-delivery-retry-count' = 15
pipelining = false
'priority-queue-implementation' = class tigase.util.workqueue.PriorityQueueRelaxed
'processing-in-threads' = 32
'processing-out-threads' = 32
'scheduler-threads' = 2
'scripts-dir' = 'scripts/admin'
'send-node-hostname' = true
'service-connected-timeout' = 60
'sid-logger-level' = 'OFF'
total_bin_limit = 0L
total_packets_limit = 0L
trafficThrottling = 'xmpp:2500:0:disc,bin:20m:0:disc'
trusted = null
'watchdog-delay' = 600000L
'watchdog-ping-type' = WHITESPACE
'watchdog-timeout' = 1740000L
xmppLimitAction = DISCONNECT
'client-trust-manager-factory' (class: tigase.server.xmppclient.ClientTrustManagerFactory) {
clientCertCA = null
clientCertRequired = false
}
commands {}
connections (class: tigase.server.ConnectionManager$PortsConfigBean,
exportable: true) {
ports = [ 5280 ]
5280 (class: tigase.server.ConnectionManager$PortConfigBean) {
ifc = null
'new-connections-throttling' = 3000000L
socket = plain
type = accept
}
'disco-extensions' {}
routingComputer (class: tigase.util.routing.RoutingsContainer$SingleMode) {}
seeOtherHost (class: tigase.server.xmppclient.SeeOtherHost) {
defaultHost = null
phases = [
OPEN
]
}
sslContextContainer (class: tigase.io.SSLContextContainer) {
'ephemeral-key-size' = 4096
'hardened-mode' = secure
'tls-disable-tls13' = true
'tls-disabled-ciphers' = null
'tls-disabled-protocols' = null
'tls-enabled-ciphers' = [
'TLS_AES_128_GCM_SHA256',
'TLS_AES_256_GCM_SHA384',
'TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384',
'TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256',
'TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384',
'TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384',
'TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384',
'TLS_DHE_RSA_WITH_AES_256_GCM_SHA384',
'TLS_DHE_DSS_WITH_AES_256_GCM_SHA384',
'TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256',
'TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256',
'TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256',
'TLS_DHE_RSA_WITH_AES_128_GCM_SHA256',
'TLS_DHE_DSS_WITH_AES_128_GCM_SHA256',
'TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384',
'TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384',
'TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384',
'TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384',
'TLS_DHE_RSA_WITH_AES_256_CBC_SHA256',
'TLS_DHE_DSS_WITH_AES_256_CBC_SHA256',
'TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA',
'TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA',
'TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA',
'TLS_ECDH_RSA_WITH_AES_256_CBC_SHA',
'TLS_DHE_RSA_WITH_AES_256_CBC_SHA',
'TLS_DHE_DSS_WITH_AES_256_CBC_SHA',
'TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256',
'TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256',
'TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256',
'TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256',
'TLS_DHE_RSA_WITH_AES_128_CBC_SHA256',
'TLS_DHE_DSS_WITH_AES_128_CBC_SHA256',
'TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA',
'TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA',
'TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA',
'TLS_ECDH_RSA_WITH_AES_128_CBC_SHA',
'TLS_DHE_RSA_WITH_AES_128_CBC_SHA',
'TLS_DHE_DSS_WITH_AES_128_CBC_SHA',
'TLS_EMPTY_RENEGOTIATION_INFO_SCSV'
]
'tls-enabled-protocols' = [ 'TLSv1.2', 'TLSv1.1', 'TLSv1' ]
'tls-jdk-nss-bug-workaround-active' = false
}
'stream-error-counter' (class: tigase.server.xmppclient.StreamErrorCounterIOProcessor,
active: false) {}
'urn:xmpp:sm:3' (class: tigase.server.xmppclient.StreamManagementIOProcessor) {
'ack-request-count' = 10
'ignore-undelivered-presence' = true
'max-resumption-timeout' = 900
'resumption-timeout' = 60
}
}
from tigase-server.
I raised the limit on the number of connections, but the problem still persists,Does the value of this parameter represent the actual number of connected users?
bosh { connections { 5280 () { 'new-connections-throttling' = 2000 } } seeOtherHost {} }
This would set limit of no. of new TCP connections to 2000 per second.
I wonder, as you mentioned that BOSH port is brokered by nginx, are you testing Tigase BOSH directly or with proxy/forwarding over nginx? Because maybe you are hitting some nginx limit?
from tigase-server.
Related Issues (20)
- problem with DefaultClusteringStrategy HOT 4
- how to completely disable pubsub? HOT 2
- Error trying to install Tigase server on GCP machine HOT 2
- dockerfile HOT 1
- tig_ma_msgs can`t insert records HOT 2
- Problems with Tigase after default initialization using Spark connection HOT 3
- is possibile to configure update-login-time-query? HOT 3
- maven build error HOT 7
- upgrade tigase from 7.1.5 to 8.2.2 HOT 29
- Secondary development online and offline messages HOT 6
- 用sprak连接tigase 8.2.2版本服务无法连接
- I tried to connect to tigase using smack and spark, but encountered the following error
- XEP-0485: PubSub Server Information support HOT 5
- Accound Disabled HOT 1
- Readme Quickstart Link broken HOT 1
- Can's access http://my-server-ip:8080/setup/ HOT 5
- 8.3.1 version HOT 1
- Inquiry About Licensing Options for Triplecyber HOT 2
- Cannot link to server HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tigase-server.