hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "aoe fm (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HTTPCLIENT-1676) Jdk 8 http upload speed
Date Tue, 11 Aug 2015 08:03:45 GMT
aoe fm created HTTPCLIENT-1676:

             Summary: Jdk 8 http upload speed
                 Key: HTTPCLIENT-1676
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1676
             Project: HttpComponents HttpClient
          Issue Type: Bug
          Components: HttpClient
         Environment: jdk8, windows 2008
            Reporter: aoe fm
             Fix For: 4.5

I write simple java code upload file to web server. It running smoothly with jdk7 (upload
speed about: 20 MB /s), but when i switching to JDK8 upload speed down to 2MB/s. I have tested
and it same result with apache httpclient, okhttp (windows and linux) Could you help me solve
this issue. this is simple code using apache http client

    FileEntity fileEntity = new FileEntity (file,
    final RequestBuilder preUpload1 = RequestBuilder.post()
            .setUri(new URI(upload_url)).setEntity(fileEntity)
    String responseBody = httpclient.execute(preUpload1.build(),
            new StringResponseHandler());

This message was sent by Atlassian JIRA

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

View raw message