All the Mods 10 - ATM10

All the Mods 10 - ATM10

166k Downloads

[Crash]: Packet handling error (Connection reset)

JavaMachine opened this issue ยท 6 comments

commented

Possible Fixes

No

Modpack Version

1.15

What happened?

Couple days ago I have setup setup server on my other PC, I played like 2-3 days and today I can't connect to my server.

Crash Log

https://gist.github.com/JavaMachine/16613425ab095de44729026c0be17a8f

Latest.Log

https://gist.github.com/JavaMachine/d31c382de191f4f4a0ea679cb537e40e

commented

I tried to rename world folder to world_old, so server could generate new one. But still it does not help.

Tried creating single world, it works.

commented

Completely removing ATM10 client and reinstalling does not helped either.

commented

Upgrading server and client to 1.16 did not help

commented

Removing everything except world directory and reinstalling/re-initialization of the server did not help :(

commented

I do not know what exactly fixed it.

On my PC (client), all I did was reduced swap memory on my system to 1GB and -Xmx to 4GB.
(p.s. Why? I guess when client is on "Loading Terrain" stage, client freezes like 3-5 seconds and then it disconnects. My guess was that my Windows is trying to page out some of the memory, which might be causing this freezes and which might be resulting in disconnects)

On the server:

Edited /etc/sysctl.conf and added this params:

net.ipv4.tcp_keepalive_time=60
net.ipv4.tcp_keepalive_intvl=30
net.ipv4.tcp_keepalive_probes=9
net.ipv4.tcp_tw_reuse=1
net.ipv4.tcp_retries2=8
net.ipv4.tcp_rmem="4096 87380 6291456"
net.ipv4.tcp_wmem="4096 16384 4194304"
net.ipv4.tcp_fastopen=0