ServerSync

ServerSync

48.5k Downloads

Slow speeds when syncing nonlocally

MrKashew opened this issue ยท 5 comments

commented

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?

commented

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?

commented

@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.

commented

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.

commented

Working far faster in my test, no longer hanging on larger mods for me!

commented

Released this fix in 4.1.0, closing as resolved.