hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stoimen Gerenski (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HTTPASYNC-96) The client performs slowly on Windows with large files
Date Tue, 15 Dec 2015 09:52:46 GMT

    [ https://issues.apache.org/jira/browse/HTTPASYNC-96?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15057738#comment-15057738
] 

Stoimen Gerenski commented on HTTPASYNC-96:
-------------------------------------------

It's controlled environment, so the issue should not be due to network, also executed the
tests multiple times and with the same outcome.

Since HttpClient is the layer I am directly interfacing with, I thought the issue investigation
can start from there and the it might be due to some Windows-specific default configuration
done by the HttpClient, e.g. one thing I am considering testing is enabling the TCP No Delay
feature (not sure if that is different on Linux / Windows.

Anyway, it seems I need to do more investigation on my own and if found more evidence that
there is HttpClient-specific issue, go back with my findings here.
I guess this means we can resolve the issue.


Thanks,

-Stoimen

> The client performs slowly on Windows with large files
> ------------------------------------------------------
>
>                 Key: HTTPASYNC-96
>                 URL: https://issues.apache.org/jira/browse/HTTPASYNC-96
>             Project: HttpComponents HttpAsyncClient
>          Issue Type: Bug
>    Affects Versions: 4.1.2
>         Environment: Windows 7 x64
>            Reporter: Stoimen Gerenski
>
> Using custom instance of the client with pretty much standard configuration:
> IOReactorConfig config = IOReactorConfig.DEFAULT;
> IOReactor ioreactor = new DefaultConnectingIOReactor(config);
> PoolingNHttpClientConnectionManager cm = 
>   new PoolingNHttpClientConnectionManager(ioReactor);
> cm.setMaxTotal(100);
> cm.setDefaultMaxPerRoute(1);
> CloseableHttpAsyncClient client = 
>   HttpAsyncClients.custom().setConnectionManager(cm).build();
> client.start();
> For writing the bits on disk, used ZeroCopyConsumer.
> Downloading 11 files in total with total size 1,6 GB from the same server.
> Using the same build, downloaded on Linux for 1 minute and on Windows for 4 minutes.
> Tested with both Java 7 and 8 JREs on the Windows machine - same result.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message