Our IT department has informed me of their intention to script 1000's of
requests to hit one of my test Apache instances. My webservice depends on
a 3rd party service that would be a bottleneck, so I need to prevent too
many concurrent requests to the 3rd party.

Presently I have:
ThreadsPerChild 64
AcceptThreads 4

It sound like if I set those to 2, then only two concurrent requests can be
processed. Am I understanding that properly?


Apache directives:

AcceptThreads - limits the number of threads for accepting socket
connections; others wait in queue.

ThreadsPerChild - limits the number of threads that can serve CGI requests.

I imagine that whether these directives help you or not depends on whether
you have more than one client using the HTTP server at the same time,
whether you're trying to use the directives for debugging programs. In that
case, the directives may not work well.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2021 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.