Re: how to check for bandwidth limitations when uploading files?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Robert P. J. Day wrote:
>   probably not really a PHP question but i'll take a chance, anyway.  i
> want to examine the network throughput i can get when continually
> uploading files from a PHP script via a POST request using the
> HTTP_Request2 class.
> 
>   i have a client-side script that simply takes files, creates a short
> POST request, and submits it to a server-side PHP script that takes the
> uploaded file and saves it.  no big deal.
> 
>   as a test, i created a random 5M file, then looped 100 times
> submitting the same file, and timed it.  while the system and user time
> was only a few seconds total, real (clock on the wall) time was 2.5
> minutes.  this suggests that the bottleneck is simply network transfer
> speed.
> 
>   while i'm doing these uploads, is there a way to monitor network
> throughput?  if this is truly the bottleneck, the only real solution
> will be to pay a premium for faster network access, i suppose.  but i'd
> just like to be able to produce some numbers or evidence that that's the
> actual problem.  thoughts?
> 
> rday
> 
> 

What web server are you using?  Is it Apache, lighttpd, php daemon, etc?

If it is anything but directly talking to a php daemon, you must take into
consideration that the parent web server does not hand off processing to PHP
until it has received the entire file.  At this point is when your timer script
starts working.

So, what is receiving the file?

-- 
Jim Lucas

   "Some men are born to greatness, some achieve greatness,
       and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
    by William Shakespeare

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux