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.

Locust starts throwing failures when users > 130 (OS X)

See original GitHub issue

I got locust installed on Macbook Air The test is very basic, only one page is tested:


from locust import HttpLocust, TaskSet, task

class UserBehavior(TaskSet):
    def on_start(self):
        pass

    @task
    def profile(self):
        self.client.get("/nonprofit/ifrc/articles/125585")

class WebsiteUser(HttpLocust):
    task_set = UserBehavior
    min_wait=5000
    max_wait=15000

and the user load is very small obviously.

GET /nonprofit/ifrc/articles/125585 ConnectionError(MaxRetryError("HTTPConnectionPool(host='www.qammado.com', port=80): Max retries exceeded with url: /nonprofit/ifrc/articles/125585 (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x10ad788d0>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',))",),)

Issue Analytics

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

github_iconTop GitHub Comments

20reactions
rafalfcommented, Jan 26, 2017

yes that’s the problem ! thanks. Just in case if someone stumble upon the same issue the command is: ulimit -S -n 1024 there are other ways of setting it up as well closing it

3reactions
DataGreedcommented, Mar 16, 2020

Oops, my bad.

The proper way to check for number of file descriptors on MacOS currently is:

ulimit -n

or you can use this to see all limits:

ulimit -a

Mine was 256, changed it to 4096 and the issue was resolved:

ulimit -n 4096

Note: changes don’t persist and last current terminal session only.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fail setup in Locust? - python - Stack Overflow
I'd like for it to not even start the tests if setup fails. Is there a way to do that? Locust code class...
Read more >
VLW - River Thames Conditions
Solid edge 2d mac, Oberkonsistorialrat. ... Mcfc score, Eaglebrook apartments locust grove ga, Trac connector, Contoh ijtihad dalam bidang ekonomi, ...
Read more >
Untitled
Public radio app for mac! Burghley horse trials map, Tiltin windows northfield, Atcon home builders dublin ga, Residentevil5, Luxuria capa dvd, ...
Read more >
Edible insects: future prospects for food and feed security
bees, wasps, ants, grasshoppers, locusts, crickets, cicadas, leaf and planthoppers, scale insects and true bugs, termites, dragonflies and flies.
Read more >
負荷試験のために Locust を使ってみる - Neo's World
MacOS の場合は、先に Homebrew を使って python3 と、Locust が使う libev ... 参考:Locust starts throwing failures when users > 130 (OS X) ...
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