0

In this answer they mention 10

I did man xargs and couldn't find what's the maximum limit.

Is it possible to send 10000 cURL requests per second? How about 50000 cURL requests per second? I mean all 50000 executing at same time?

sofs1
  • 103
  • 3
  • It depends on your hardware and network connection limits. – AlexD Jan 02 '22 at 10:46
  • Is there any mapping of hardware/network vs. approx -P value? I can use cloud machines. – sofs1 Jan 02 '22 at 10:48
  • the question is what are you trying to curl? if its the same url apache load testing tool can do this without xargs, but remember i already shoot my own server into a DDoS due to forgotten this process in the background ;) – djdomi Jan 02 '22 at 16:04

1 Answers1

1

The maximum is implementation-dependent. You can show it by running xargs --show-limits (assuming Linux). There may also by (socket) limits by the OS or the user you're running this under.

Zac67
  • 8,639
  • 2
  • 10
  • 28
  • I'm getting xargs: illegal option -- - usage: xargs [-0opt] [-E eofstr] [-I replstr [-R replacements]] [-J replstr] [-L number] [-n number [-x]] [-P maxprocs] [-s size] [utility [argument ...]] – sofs1 Jan 02 '22 at 10:48
  • Then if you perhaps **provided a little more information about your system** someone could answer your question. – Zac67 Jan 02 '22 at 11:02
  • I use Mac OS... – sofs1 Jan 02 '22 at 11:09
  • I found an example here https://unix.stackexchange.com/q/279742/366317 But couldn't figure out which of those 5 sizes is applicable to -P – sofs1 Jan 02 '22 at 11:16