Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Configuring Apache HTTP Server on Windows

 
soumya ravindranath
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I was going through the Apache documentation and found this -

ThreadsPerChild: This directive is new. It tells the server how many threads it should use. This is the maximum number of connections the server can handle at once, so be sure to set this number high enough for your site if you get a lot of hits. The recommended default is ThreadsPerChild 50.


I have a basic question, does it really mean that the Apache server can accept only say, 50 requests at a time ?! How do the websites handle more users then ?

Thanks,
Soumya.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To get 50 concurrent hits, your site would have to be extremely busy unless each page took a long time (more than a half a second or so) to process.
 
soumya ravindranath
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ben,

thanks for replying. I am doing this research for embedded systems and I fear that our client expects about 1000 hits/requests in one second I have yet to understand the full implication of this, but have to figure out... ( pardon me, I am thinking aloud ).

Soumya.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would try load testing your app to figure out how many concurrent threads you will need to be able to handle.

If your response time is < 1/20th of a second 50 threads (in theory) would be enough to handle 1000 hits per second.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic