|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
Hi everybody !
I have apache and php setup on my computer and everything seems to run ok. The only problem is that when I load several times the same php script at the same moment. I realised that only two php scripts can be executed at the same time. That means that the first two scripts start, then the rest wait till one, which is running, is finished and then another one starts, and so on, always two by two... To run this test I tried to use php as a cgi or as a module of apache and the results are the same. The php script is really simple, you can see the code at the end of this post. So now I am wondering if -->it is normal ? -->it comes from a bad configuration of apache ? -->it coms from windows (Since I am using win 98 to run these tests) and maybe linux could handle that better ? -->my computer is not fast enough (I have a duron 850) ? I hope I have been clear enough to explain my problem. I am looking forward to hearing from you. Thanks in advance for your help, ![]() Vincent PS: Here is the code: $today = date("m.d.y"); $time = date("H:i:s"); echo"<p> ". $today ." test starts at ". $time ."<br>"; for ($i=0; $i<10; $i++) { echo "<p>". $i ."</p>"; for ($t=0; $t<1000000; $t++) {} } $time = date("H:i:s"); echo"<p> ". $today ." test finishes at ". $time ."<br>"; |
|
#2
|
|||
|
|||
|
>> The php script is really simple
>> for ($t=0; $t<1000000; $t++) {} This doesn't make any sense at all. >> it is normal ? No. >> it comes from a bad configuration of apache ? Can't tell until seeing your config files. (Don't even attempt post your entire httpd.conf here) >> and maybe linux could handle that better ? No doubt. >> I have a duron 850 That's way too fast for me. Most people don't have any understanding of hardware. In most case, RAM is most important, followed by I/O (get a SCSI disk), then CPU. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Apache running php... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|