943,972 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 2363
  • PHP RSS
May 16th, 2006
0

How many PHP scripts can run concurrently via http request?

Expand Post »
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?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
BigChase is offline Offline
1 posts
since May 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: New Project - First One - Need Help!
Next Thread in PHP Forum Timeline: can some 1 teach me some php?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC