| | |
How many clients can access a PHP script at a time?
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Mar 2004
Posts: 1,620
Reputation:
Solved Threads: 51
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
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
•
•
Join Date: Oct 2004
Posts: 14
Reputation:
Solved Threads: 1
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
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
•
•
Join Date: Sep 2004
Posts: 25
Reputation:
Solved Threads: 0
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..
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..
![]() |
Similar Threads
- My PHP script to display time is working but there is no 'AM' or 'PM' . Help me (PHP)
- question about connecting odbc to sql through php script (PHP)
- How many clients can access a PHP script at a time from a MySQL server? (MySQL)
Other Threads in the PHP Forum
- Previous Thread: PHP code not blending with HTML
- Next Thread: Editing/Creating PHP Fields - Novice! Help?
| Thread Tools | Search this Thread |
apache api array beginner binary body broken buttons cakephp checkbox class cms code cron curl database date date/time display dynamic ebooks echo email error file files folder form forms function functions global google href htaccess html image include insert ip javascript joomla limit link list login mail mediawiki menu mlm msqli_multi_query multiple mycodeisbad mysql number oop parameter paypal pdf php phpincludeissue problem query radio random recourse recursion regex remote script search seo server sessions sms source sp space speed sql static subdomain syntax system table tag tutorial update upload url validator variable vbulletin video web webdesign white wordpress xml youtube






