First I am not quite sure what will happens if max thread count is reached for Resin Standalone server 4.0.32. Based on my observation, Resin will either put the requests on hold (process them in order) or disconnect the connection. But I don't know how Resin decides this. So I want to know what is happening behind it.
Also I am wondering if I can customize the behavior of the server for this case, so assume resin has reached the maximum number of threads allowed. and for the request in the queue, if they are in the queue for more than 2 minutes, I want the server return a 503 to the client. Is this achievable?
Any comments or information are appreciated. Thank you.
We are using Resin 4.0.32 open source edition, java 1.6_16