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,
"application/octet-stream");
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
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]