title: Is there a connection/memory limits for Apache Service while running cgi programs?
body: <p>I'm trying to run hundreds of cgi programs (perl or other languages) concurrently on Apache 2.0/2.2/2.4. My test environment is Windows Server 2003 R2 with 1GB of RAM.</p>
  
  <p>In the program, I use either an infinite loop or "$_ = &lt; STDIN >" to keep each process alive. In the Apache configuration, I set all relative configurations large enough such as ThreadPerChild to 1000. Then I use JMeter to test 200 requests. When I run Apache in console application, it works fine and all 200 cgi processes are running. However, when I run Apache as a windows service, only 60-100 processes will run in concurrent. Others won't start unless I kill any running process. I don't what's causing this. Is there a connection/memory limits for Apache Service while running cgi programs? Thanks!</p>