question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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 ?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
cyberwcommented, 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

1reaction
gangootelicommented, Aug 8, 2021

Thank you

Read more comments on GitHub >

github_iconTop Results From Across the Web

ssh: handshake failed: read tcp read: connection reset by peer
I am running 1000 concurrent connections at it eventually hits this also on OSX with file descriptors bumped up from default (256) to...
Read more >
6 Ways to Fix Connection Reset by peer - howtouselinux
Connection reset by peer means the TCP stream was abnormally closed from the other end. A TCP RST was received and the connection...
Read more >
Random Connection Reset By Peer on client machine.
No. 'Connection reset by peer' is most usually caused by writing to a connection that the other end has already closed. This is...
Read more >
postgres connection reset by peer - You.com | The Search ...
Using sqlx with a couple concurrent connections I ran quickly into the issue of Too many open connections . Limiting db.DB.MaxOpenConnections got actually...
Read more >
Server : 127.0.0.1 Errorcode : 10054 SocketErrorCode ...
Currently, I am testing it on my local Lan server, ... 10054 SocketErrorCode: ConnectionReset Message : connection reset by peer.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found