#Is opening ports 16262 TCP onwards still needed?

68 messages · Page 1 of 1 (latest)

azure bramble
#

I'm troubleshooting at the moment, maybe you guys can help me.

Trying to figure out why my dedicated server crashes when players are map streaming. Currently using a 24G RAM Ubuntu Based Oracle VPS, tried allocating up to 20g in -Xmx but still the server crashes randomly when (at max) 5 clients are exploring.

https://pzwiki.net/wiki/Multiplayer_FAQ#How_do_I_set_up_a_server_in_Windows/Mac/Linux

I read in there that "For each possible player slot on your server, you need to forward additional TCP ports, which are used to stream the world to the player clients. Eg: If 10 players are going to join your server, you need to open 16262-16272 TCP "

Is that still a thing?

Maybe it's the reason why my server crashes so often.

Cheers!

#

Is opening ports 16262 TCP onwards still needed?

real stratus
#

Can you share the latest “hs_err_pid” file found in your main server folder?

azure bramble
#

Sure, is it ok if I post the file directly in here?

#

Also, the only hs_err_pid file I have available at the moment was generated a few hours ago at a crash on startup, which is a thing that also happens a lot and I really don't know why.

#

I tend to delete them and just move on, but I can get you a new one as soon as It crashes while map-streaming which will probably happen later today

azure bramble
real stratus
#

You can send it here, its best not to delete them as they would be fairly useful in finding out the issue

azure bramble
#

Here you go. Reminder that this log was generated during a crash on startup (which is a thing that I'd also like to solve) and not while map-streaming. I'll try to send that one later today

real stratus
#

Do you have any other servers on this machine?

#

From what I can tell, this error is either a memory error or an install error

#

Which guide did you follow for installing the server?

azure bramble
real stratus
#

I would recommend you assign at least 16

#

Let me know once you have the log from it crashing during gameplay

azure bramble
#

Right. Do you think adding -Xms as well in the 64json file might help? I get the impression the server doesn't use more than 8gb at any time (even with -Xmx20g assigned) and STILL crashes

#

See what I mean? During this time the server only had -Xmx20g (no Xms) assigned and still crashed at 19:40 multiple times

real stratus
#

Its fine to use both -Xmx and -Xms if you have a dedicated server machine, since that means you just reserve the RAM at the start

#

I would personally not go up to 20 just because I like leaving the OS with a reserve

#

Though 4gb should be plenty on linux

azure bramble
#

I think I'll go for -Xms10g and -Xmx16g

#

Not sure if I mentioned but I use ~80 mods

azure bramble
#

2 connected players at the moment of crashing, I was driving when all of a sudden the map stopped loading, then the server crashed. and it wasn't even an unexplored area.

#

the only thing that I can think of is that I did set the maximum vehicle speed to 150mph, instead of the default which is 70mph I believe

real stratus
#

Can you also share the server-console log from the Home/Zomboid folder as well?

#

Or from the Logs folder, since if you started the server the log would be put there

azure bramble
#

I set SpeedLimit back to 70mph just in case, and regardless it still crashed, even with only me being connected. I was generating map while driving.

azure bramble
real stratus
#

Since it seems to be a problem with a chunk loading, and then there are some "null" errors in the log, which also means it doesnt point to any specific mod

#

I would likely recommend starting a new save and testing if the issue happens without any mods

#

The log show that the crash happened in 18 minutes right?

azure bramble
#

I've got the slight suspicion that one of these is causing all these problems

azure bramble
modern knot
#

do you know how much swap space you have? I had a similar issue getting pz to run on an ec2 instance and that was the cause. I would run into the black void and wait for the map to load and eventually it would just crash. -- thought I put this in a the wrong window lol

azure bramble
#

your guess is as good as mine

modern knot
#

lots of free memory so that's probably not it. what do you get with "free -h"

azure bramble
#

@modern knot I assume swap memory is completely disabled/not set

modern knot
#

@azure bramble I don't think it's your problem but it doesn't hurt to have some. I run a linux server with 8 gig ram, 30 gig HD with 1 gig swap and around 100 mods and it runs very well, even with 8 people on it. Google "initializing swap on ubuntu 22.04" and give yourself a gig. Even if it's not the issue, it might prevent one later on when you get this figured out.

azure bramble
#

okay so here's what happened

#

i absolutely nuked my zomboid installation, uninstalled from steamcmd, removed all zomboid-related folders and started from scratch following the official guide

#

steamcmd downloaded all files successfully, so before I launched ./start-server.sh I modified my 64json file so that It used Xms16 and Xmx16 as it said on the guide

#

started the installation and boom

#

crashed again

#

so I assume it's a java related error

modern knot
#

no mods?

#

and try adding a 1G swap file if you can. It wouldn't hurt anything if you have the disk space. Watching your video gives me serious deja vu of "ran out of memory" on my cheap EC2 server

azure bramble
#

it was the first launch

azure bramble
#

just for the sake of it

#

didn't make a difference sadly

modern knot
#

@azure bramble asked my way smarter than me systems engineer brother and he says "can zomboid run on an Arm processor?"

#

and unless something has changed, I don't think zomboid likes Arm very much

azure bramble
#

well thats bad

#

the thing is, the server works (aside from struggling to start and crashing if players explore)