Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old October 10th, 2001, 03:50 AM
vincent vincent is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Location: France, Germany
Posts: 1 vincent User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Apache running php...

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>";

Reply With Quote
  #2  
Old October 11th, 2001, 12:08 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> 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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Apache running php...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway