Meaningless Drivel is fun!*
The moose likes Tomcat and the fly likes Configuring Apache HTTP Server on Windows Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Configuring Apache HTTP Server on Windows" Watch "Configuring Apache HTTP Server on Windows" New topic
Author

Configuring Apache HTTP Server on Windows

soumya ravindranath
Ranch Hand

Joined: Jan 26, 2001
Posts: 300
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

Joined: Dec 11, 2004
Posts: 13410

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.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
soumya ravindranath
Ranch Hand

Joined: Jan 26, 2001
Posts: 300
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

Joined: Dec 11, 2004
Posts: 13410

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Configuring Apache HTTP Server on Windows