Habaek
Habaek

Reputation: 41

How to increase the limit of open connections on mac

I need to trigger 30K+ requests from MacBook. How can I increase the limit to trigger that much of requests without any interruption? is there any way to way to increase the limits? if 30k is not possible, is there any way to trigger 10k+ requests without any hindrance? I'm using the k6 tool to trigger requests.

I tried ulimit -n 1000000 but it didn't work. after reaching 5.5k+ requests. it starts throwing the EOF error.

Upvotes: 0

Views: 389

Answers (1)

Dmitri T
Dmitri T

Reputation: 168072

Check out the following parameters:

sysctl kern.maxfiles

and

sysctl kern.maxfilesperproc

to see if the values are above 30k

Also it might be the case the number of open handles is not something which prevents you from running the test, 30k requests per second might be too much for a single machine so it's better to consider switching to a load testing tool which can be launched in clustered mode like Apache JMeter or Locust or Tsung

Upvotes: 0

Related Questions