5

Java 用 http 传输文件速度很慢,请问各位大神有什么好办法么

 3 years ago
source link: https://www.v2ex.com/t/808987
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  程序员

Java 用 http 传输文件速度很慢,请问各位大神有什么好办法么

  heavyrainn · 6 小时 24 分钟前 · 576 次点击

小弟正在用 java(kotlin)做一个基于 HTTP 的数据传输工具,部分情况可能会需要传输比较大的文件(大于 10G )。目前 server 端使用 commons-fileupload-1.4 包,client 端使用 httpclient 工具。测试下来发现虽然能传,但是速度非常慢,localhost 传输只有不到 20M/S 。请问各位这里有什么好的传输性能好的手段么?

HTTP 传输为硬性条件,没办法使用 SFTP 、FTP 等其他传输协议,悲剧…


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK