-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Could not send response error 500 #1043
Comments
Can you please take a JVM thread dump when that happens ?
This is typical of stress/load tests: the server is so fast that the client cannot keep up. Having said that, the server should have idle timed out before throwing If you can easily reproduce the issue, we are interested in trying to reproduce ourselves: can you share your code ? |
Thank you very much.
I remember that the exceptions is about a deadlock sometimes,but I lost the log. I also found that if the jetty start throwing those exceptions and more new requests come into jetty ,the jetty will be busy throwing those exceptions,so the new request can not be handled. So is there any way to handle this more friendly and quickly ? |
If you are load testing and the server idle times out, you have a problem on the client that is not able to read what the server sends fast enough. That Jetty throws those exceptions in sequence means that the client was overwhelmed by the traffic that itself generated, so it's only matter of writing a proper load test - and it's not as easy as it seems. If you have a reproducible test case, please attach it here. |
This could be related to #517 |
The main problem IMO is that when this exception is thrown it has happend somewhere else already on a different time. SharedBlockingCallback is blocking until complete.await() finished and then check if the state is a exception to throw in this case it reaches the throw new IOException(_state); what includes the timeout exception set in the state... |
You might want to try out the fix here if it solves your case: #1037 if it only occurs under heavy load. |
It's been over a year with no additional information. Closing. |
I have a stress test applied to my web app running in jetty container,the jetty throws some exceptions like follow:
The text was updated successfully, but these errors were encountered: