hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: calculate bandwidth of HttpClient
Date Tue, 15 Apr 2008 17:49:12 GMT

On Tue, 2008-04-15 at 19:43 +0300, Eugeny N Dzhurinsky wrote:
> Hello there!
> 
> Is there any way to get the bandwidth, used by HttpClient to download
> pages?
> 
> Currently we are using version 3.0.1 of HttpClient, and we had implemented the
> ProtocolSocketFactory which returns an instance of the custom Socket class,
> which returns the InputStream which is able to return amount of bytes read
> from the content stream. Knowing the amount of bytes and time of download, it
> is trivial to calculate the bandwidth - however the real bandwidth on the
> network interface is about 2 times more than reported by our application.
> 
> And we are sure there are no other network activity on the interface, and our
> calculations seems to be right - the amount of downloaded data equals to the
> amount of data saved to the persisted storage.
> 

It is possible that the remote server is just not able to saturate all
available bandwidth.

Oleg 


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message