Skip to content
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

"Connection reset by peer" failure When doing local test with lost ( >1000) concurent users #545

Closed
allan-simon opened this issue Feb 20, 2017 · 8 comments

Comments

@allan-simon
Copy link

I'm using locust 0.7.5 , when I try to do a local (on my ubuntu 16.04) load test on a tornado web service, with a high number of concurrent users, a certain percentage of the requests (~8%) fail with the error

"ConnectionError(ProtocolError('Connection aborted.', error(104, 'Connection reset by peer')),)"

According to http://www.itmaybeahack.com/homepage/iblog/architecture/C551260341/E20081031204203/index.html , it seems to be a known python issue , which also seems to rule out a problem on the server side (which is correlated by the fact that I see no error or warning on the server side)

Is this a known locust issue ? If yes what are the workaround ?

@cgoldberg
Copy link
Member

can you show the full stacktrace?

@allan-simon
Copy link
Author

actually it only shows up in the "failure" tab of the web interface, in the console output of the locust process there's no stacktrace, even with loglevel set to DEBUG. I think it's certainly catch somewhere in the code

@cgoldberg
Copy link
Member

nothing actionable here

@allan-simon
Copy link
Author

will be it be reopened if I can produce a projet repeating the problem and/or if I dig further in the code to see if there's a try/catch in locust swallowing the exception ? or is it because it's a known python issue and you can't do nothing about it?

@cgoldberg
Copy link
Member

if you provide more info, we can re-open it.

@gangooteli
Copy link

I am also getting the same error when increasing the number of total user to simulate to 5000. it is running fine without failure when the value is at 500

image

image

Any resolution for the same or am I missing something

@cyberw
Copy link
Collaborator

cyberw commented Aug 8, 2021

Connection reset by peer means the server (your target host) has closed its connection to Locust. With a high probability it has nothing to do with Locust and everything to do with your target server.

You might find some hints here: https://github.com/locustio/locust/wiki/FAQ#increase-my-request-raterps

@gangooteli
Copy link

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants