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. :?:

Recommended Answers

All 3 Replies

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

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

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..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.