![ServerSync](https://media.forgecdn.net/avatars/thumbnails/254/696/256/256/637199290945083080.png)
Slow speeds when syncing nonlocally
MrKashew opened this issue ยท 5 comments
Serversync Version: 4.0.0
Minecraft Version: 1.16.5
Issue:
Nothing unusual in logs. Seems to hang on even 5mb mods, modpack is ~300mb total and takes incredibly long to sync (hours). Are there jvm arguments to optimize server speed?
Biggest clue could potentially be that it seems that sync is fast when tested via computer connected to same internet as server, but not when connected on a different internet (tried 3 different clients, all with fast internet speeds). Upload speed of server isn't too great (5 Mbps) but shouldn't be taking hours for 300mb modpack. Any insight?
It's possible that the buffer sizes on either end of the socket are causing slow transfers (8kb by default).
I don't really have enough information to help, have you tried using other transfer tools to see if serversync is the issue or just the network itself?
@MrKashew Have a try using the artifacts from this job
https://github.com/superzanti/ServerSync/actions/runs/660579400 (package)
I have changed from writing through Object*Stream's when transferring files as it seems to be hard locked to 1024 bytes at a time.
Hmm, seems like file transfer client side of the socket is limited to 1024 bytes. I'll have a dig around into what is limiting there.