[Crash]: Packet handling error (Connection reset)
JavaMachine opened this issue ยท 6 comments
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
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.
Here is the server logs
https://gist.github.com/JavaMachine/a05bc56b5ef5077484aff4b8fdd2efa1
Removing everything except world directory and reinstalling/re-initialization of the server did not help :(
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