| | |
How many PHP scripts can run concurrently via http request?
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: May 2006
Posts: 1
Reputation:
Solved Threads: 0
I understand that many php scripts can run concurrently and that the actual limit is determined by hardware. However, I have written a script that benchmarks a mysql database application and am finding that only two instances of the script will run at a time when executed via an http request.
When the script is executed four times simultaneously from four different shell sessions, all four instances execute at the same time and finish at approximately the same time.
When the script is executed simultaneously from four different browser sessions on the same client machine, only two instances execute at a time. The third and fourth instances wait for the first and second instances to complete before executing. Why is this? Is this a hard limit or a configurable limit? Is the limit related to php an/dor Apache?
When the script is executed four times simultaneously from four different shell sessions, all four instances execute at the same time and finish at approximately the same time.
When the script is executed simultaneously from four different browser sessions on the same client machine, only two instances execute at a time. The third and fourth instances wait for the first and second instances to complete before executing. Why is this? Is this a hard limit or a configurable limit? Is the limit related to php an/dor Apache?
![]() |
Similar Threads
- how can i make php alert pop ups just like in javascript. (PHP)
- Http request error when using AJAX. (JavaScript / DHTML / AJAX)
- Problem with two small PHP scripts? (PHP)
- Running PHP scripts in backround (PHP)
- need help with php scripts (PHP)
- HTTP request in C (C)
- send http request?? (C++)
- HTTP Request Message Issue (PHP)
Other Threads in the PHP Forum
- Previous Thread: New Project - First One - Need Help!
- Next Thread: can some 1 teach me some php?
| Thread Tools | Search this Thread |
# 5.2.10 action address apache api array auto autoincrement beginner binary broken cakephp checkbox class classes cms code cron curl database date dehasher destroy display dissertation domain dynamic echo echo$_get[x]changingitintovariable... email error errorlog fatalerror file files folder form forms function functions google href htaccess html if-else image images include insert ip javascript joomla legislation limit link load login mail masterthesis menu mlm multiple mysql mysqlquery oop open paypal pdf persist php popup problem query radio random record recursion remote script search server sessions sms sockets source space sql syntax system table tutorial update upload url validator variable video web youtube





