User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 402,787 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,840 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 2213 | Replies: 3
Reply
Join Date: Sep 2004
Posts: 25
Reputation: billah_norm is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
billah_norm billah_norm is offline Offline
Light Poster

Help How many clients can access a PHP script at a time?

  #1  
Nov 8th, 2004
Hi all,
I have a question.
How many clients can access a PHP script at a time?

Suppose, I have a database site written in PHP. I have used MySQL. Then How many clients can access that database through PHP as a midlware??

Can anybody answer this or help or suggest me?

Thanks.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Mar 2004
Posts: 1,514
Reputation: kc0arf is a jewel in the rough kc0arf is a jewel in the rough kc0arf is a jewel in the rough 
Rep Power: 10
Solved Threads: 49
Colleague
kc0arf kc0arf is offline Offline
Posting Virtuoso

Re: How many clients can access a PHP script at a time?

  #2  
Nov 8th, 2004
Hello,

I *think* that is is going to be determined by how many threads you have enabled on your webserver, such as apache or IIIIS. You might be more interested in how many threads may be open instead of a client. For example, I could be 1 client, but accessing 10 different pieces of information on your website. Or 1 client downloading a bunch of little .gif files at the same time.

Christian
Reply With Quote  
Join Date: Oct 2004
Location: France / Paris
Posts: 14
Reputation: fpepito is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 1
fpepito fpepito is offline Offline
Newbie Poster

Re: How many clients can access a PHP script at a time?

  #3  
Nov 8th, 2004
Hi billah_norm,

1. On PHP
I have search but found nothing, I think that is the limitation coming from Apache
/etc/httpd/conf.d/php.conf
/etc/php.ini

2. On MySQL you have a variable:
> mysqladmin variables
[...]
max_connections = 100
[...]

3. On Apache look on file /etc/httpd/conf/httpd.conf
# StartServers: number of server processes to start
StartServers 8
# MinSpareServers: minimum number of server processes which are kept spare
MinSpareServers 5
# MaxSpareServers: maximum number of server processes which are kept spare
MaxSpareServers 20
# MaxClients: maximum number of server processes allowed to start
MaxClients 150
# MaxRequestsPerChild: maximum number of requests a server process serves
MaxRequestsPerChild 1000
Reply With Quote  
Join Date: Sep 2004
Posts: 25
Reputation: billah_norm is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
billah_norm billah_norm is offline Offline
Light Poster

News Re: How many clients can access a PHP script at a time?

  #4  
Nov 9th, 2004
Thanks you all..

I had a experience of a website coded in PHP. that was a student result database site. specially used for publishing national certications exam in my country. the results are used to publish at a fixed date that was pre-defined. So the site got a lot of access request from clinets or searchers. in this situation the site fails to fetch the result for individual requests. why did this happens? that is why i have rised that question!

may i ask questions anymore??
1. was this occur for low bandwidth of the lines?
2. was this happened for database server limitations??

thanks again..
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb PHP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 10:07 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC