You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
=== CPU Information ===
Model: Qualcomm Technologies, Inc MSM8998
Cores: 8
=== Memory Information ===
Total Memory: 5214MB
=== Disk Information ===
Total Size: 54G
Used Size: 4.6G
Available Size: 49G
期望结果
调整 Socket 的缓冲区大小,使网络性能提升一下
The text was updated successfully, but these errors were encountered:
背景
Hi,我在使用这个库的时候,发现IO性能比较弱,在局域网中下载速度只有 1-2 MB/s。然后就发现通信 Socket 的发送和接收缓冲区设置都是0
AndServer/api/src/main/java/com/yanzhenjie/andserver/server/BasicServer.java
Line 91 in 23a7c15
是在这个commit 7a7f11f 中为修复性能问题引入的。
缓冲区大小和带宽对应关系
经过测试,缓冲区大小设置到 4MB,局域网速度可以提升到 7.00 MB/s。缓冲区大小和性能的测试结果如下:
测试代码
BasicServer
TestController
测试设备
期望结果
调整 Socket 的缓冲区大小,使网络性能提升一下
The text was updated successfully, but these errors were encountered: