Yet, I’m still seeing a large number of simultaneous connections from a single user (e.g., user1).
Could I be missing something? Are there additional settings that might override or bypass this limit?
I’ve attached the jstack log for reference—any hints or suggestions would be greatly appreciated!
Gerrit version is 3.10.8, and cpu is 16 cores, and the jvm memory is 56G.
then ran repo sync -j96(yes, some users use such an aggressive job count), thenthere are 13(sshd.threads - sshd.batchThreads) SSH git-upload-pack(from jstack),and there are no any error message on client.From the serverssh -p admin@xxx gerrit show-connectionsshow only one connection.
So the "maxConnectionsPerUser = 4" is meanless in this scenario.Maybe the quota plugin can resolve the problem, will try to install the plugin.
On Monday, December 22, 2025 at 10:41:09 PM UTC-8 sword.l...@gmail.com wrote:then ran repo sync -j96(yes, some users use such an aggressive job count), thenthere are 13(sshd.threads - sshd.batchThreads) SSH git-upload-pack(from jstack),and there are no any error message on client.From the serverssh -p admin@xxx gerrit show-connectionsshow only one connection.repo tool use ssh control master to share operations on the same connection, so indeed the connection limit will be useless to prevent this. This also will wreak havoc with any sort of load balancer setup you have since it will send all the commands to one server. This can be used as an incentive to help train your customers since they generally will get better performance if they disable this feature (search the list to undrestand how)
So the "maxConnectionsPerUser = 4" is meanless in this scenario.Maybe the quota plugin can resolve the problem, will try to install the plugin.If configured properly, this should indeed help protect your server in these situations,
-Martin