-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Tomcat acceptCount #6433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
+1 |
I had some time to do more digging through the boot classes - and testing - that the following is required to effectively manage queued connections. This does work - and is a brute force way of managing resources. eg. Browsers will get a not available message, rest clients will hopefully wait 60s*random and retry.
|
To be more general - is there any difference with Jetty's "acceptQueueSize" option? If it is the same - maybe it should be supported with same spring-boot config? |
Adding two tomcat server properties: - server.tomcat.accept-count - server.tomcat.max-connections Fixes spring-projectsgh-6433
Adding two tomcat server properties: - server.tomcat.accept-count - server.tomcat.max-connections Fixes spring-projectsgh-6433
Adding two tomcat server properties: - server.tomcat.accept-count - server.tomcat.max-connections Fixes spring-projectsgh-6433
Adding two tomcat server properties: - server.tomcat.accept-count - server.tomcat.max-connections Fixes spring-projectsgh-6433
Adding two tomcat server properties: - server.tomcat.accept-count - server.tomcat.max-connections Fixes spring-projectsgh-6433
duplicates #6571 |
Adding two tomcat server properties: - server.tomcat.accept-count - server.tomcat.max-connections Closes gh-6433
Enhancement:
Add additional tomcat parameter: accept-count. This is incredibly useful parameter when implementing throttles to protect resources from heavy activity spikes. It is the best friend of max-threads which is already supported. Otherwise you end up with hundreds of sockets sitting in blocked state, rather then sending a 503 - try again later.
The text was updated successfully, but these errors were encountered: