KB Article #58094
What is the difference between [cstcp]ServerMax and [monitor]user_max ?
Problem
What is the difference between [cstcp]ServerMax and [monitor]user_max ?
Resolution
These options in the GUI map like this:
Navigator: Configure > Gateway > Connection Control > Maximum number of simultaneous users
peluconf get -s monitor user_max
Navigator: Configure > Connectivity > Navigator server > Server max
peluconf get -s cstcp ServerMax
user_max controls the number of users that can be attached to supervisor at the same time (also counts multiple instances of the same username). This will affect connections via the API or through cstcp (port 6390). ServerMax controls the number of network connections (TCP sockets) available to cstcp (port 6390, usually only used by Navigator).
There are two quirks in calculating the proper value for user_max:
1) The first several logins are used by internal processes. The minimum value that will allow one Navigator to connect and allow command line commands such as peluconf to function is about 10.
2) Each login will consume 2 of the available user connections.
For example, if you want 20 Navigators to connect, you will need to set user_max to 50 and ServerMax to 20.
user_max is dynamic (changes do not require a restart) and ServerMax is not (Gateway must be restarted for changes to take effect).
Also, each parameter is completely independent. One does not need to be larger than the other. Additional login attempts will be rejected when the first quota is reached.
If user_max is exceeded, a message like the following will appear in SUP*.out:
SupUserCount X > SUPCONF_user_max Y
while if ServerMax is exceeded, the following will appear in CSTCP*.out:
tptsoks master pid(X) detected attempt to exceed MaxServer, rejecting this client