Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Invalid
-
None
-
None
-
jdk8, windows 2008
Description
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());