6

I wrote websocket server using aiohttp python library.

Now I'm trying to test performance using locust and this snippet, but locust can't open more than 2000 connections (websocket.create_connection() raises error: [Errno 104] Connection reset by peer).

I don't understand where's the problem. Is locust can't open so much connections or aiohttp can't handle so much connections(but it don't write any errors) or maybe ubuntu drops new connections(i set ulimit to 1000000, but cpu usage is almost 100%).

0 Answers0