Project Zomboid

Project Zomboid

tCrowD Dec 14, 2021 @ 4:43am
Should I use +ZGC or +G1GC while hosting a public server for 25 players?
Seems like with ZGC my RAM is filled up to 100% over time
Is there any possible way to keep server 24\7 without restarts?
Last edited by tCrowD; Dec 14, 2021 @ 4:45am
< >
Showing 1-15 of 15 comments
tCrowD Dec 14, 2021 @ 4:44am 
And I don't think -xms and -xmx properties are working correctly
Last edited by tCrowD; Dec 14, 2021 @ 4:44am
tCrowD Dec 14, 2021 @ 5:03am 
So it's only visual thing?
According to task manager:
On a start, server used 500MB and I had 7GB of free memory
Now (after 5 hours) server is using 1.1GB and I have 1GB of free memory
I shouldn't worry about this? Server won't crash?
Last edited by tCrowD; Dec 14, 2021 @ 5:04am
tCrowD Dec 14, 2021 @ 5:12am 
Thank you!
Last edited by tCrowD; Dec 14, 2021 @ 5:13am
tCrowD Dec 14, 2021 @ 6:34am 
Well... my server crashed just now
tCrowD Dec 14, 2021 @ 7:35am 
Actually, it did not crash, but kicked everyone from server and they were unable to connect again
Then I got hundreds of these messages:
[14-12-21 19:24:52.274] LOG : Network , 1639491892274> 1 488 057 200> Received packet type=WorldSound connection is null.. [14-12-21 19:24:52.274] LOG : Network , 1639491892274> 1 488 057 200> Received packet type=ChunkObjectState connection is null.. [14-12-21 19:24:52.274] LOG : Network , 1639491892274> 1 488 057 200> Received packet type=ChunkObjectState connection is null.. [14-12-21 19:24:52.274] LOG : Network , 1639491892274> 1 488 057 200> Received packet type=ZombieSimulation connection is null..
After them I can see this:
[14-12-21 19:24:57.378] LOG : General , 1639491897378> 1 488 062 304> ----------------------------------------- STACK TRACE ----------------------------------------- function: stateToIsoObject -- file: SPlantGlobalObject.lua line # 67 function: loadIsoObject -- file: SGlobalObjectSystem.lua line # 140 function: LoadPlant -- file: MOFarming.lua line # 165 function: LoadBroccoli -- file: MOFarming.lua line # 169. [14-12-21 19:24:57.385] ERROR: General , 1639491897385> 1 488 062 311> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: isOutside of non-table: null at KahluaThread.tableget line:1689.. [14-12-21 19:24:57.386] ERROR: General , 1639491897386> 1 488 062 312> DebugLogStream.printException> Stack trace:. [14-12-21 19:24:57.391] LOG : General , 1639491897391> 1 488 062 317> ----------------------------------------- STACK TRACE ----------------------------------------- function: stateToIsoObject -- file: SPlantGlobalObject.lua line # 67 function: loadIsoObject -- file: SGlobalObjectSystem.lua line # 140 function: LoadPlant -- file: MOFarming.lua line # 165 function: LoadBroccoli -- file: MOFarming.lua line # 169. [14-12-21 19:24:57.393] LOG : General , 1639491897393> 1 488 062 319> ------------------------------------------------------------- attempted index: isOutside of non-table: null. [14-12-21 19:24:57.393] LOG : General , 1639491897393> 1 488 062 319> ----------------------------------------- STACK TRACE


Originally posted by EnigmaGrey:
Does the log say it crashed due to an OOM? If not, it's probably not related to the ZGC.

They're in %UserProfile%\Zomboid\logs\
tCrowD Dec 14, 2021 @ 7:41am 
Before this happened, server dropped 467 packets (vehicle's physics)
tCrowD Dec 14, 2021 @ 8:38am 
Originally posted by EnigmaGrey:
Hm, would you be able to email us the console from the crash? support@theindiestone.com

Not sure what to make of the above, but generally you'd see a OutOfMemoryError if it were RAM-related.
Sended you my log file
Last edited by tCrowD; Dec 14, 2021 @ 8:38am
ApeToe Dec 14, 2021 @ 8:45am 
I also experienced a very similar issue when running any number of slots on linux with ZGC, I thought performance was GREAT on account of my resource monitor showing the server was only using 2gb~ total. Then it crashed, and kept crashing from memory issues. After switching back to G1GC it hasnt crashed since
tCrowD Dec 14, 2021 @ 8:50am 
Should I use G1GC? Is it better than ZGC?
ApeToe Dec 14, 2021 @ 8:52am 
ZGC is supposed to be far superior from what I understand, but you can always try switching back in the mean time to see if the problem persists
ApeToe Dec 14, 2021 @ 8:56am 
Originally posted by tCrowD:
And I don't think -xms and -xmx properties are working correctly

so is he on to something here? I'm using more ram with ZGC
While it's a visual thing, I'd recommend restarting your server automatically using scripts or cronjobs every day at midnight, if you're not renting one out.
tCrowD Dec 14, 2021 @ 9:01am 
Well I use +ZGC and -Xms2048m -Xmx8192m for 20 max players (decreased due previous crash)
Maybe I should increase amount of RAM in -Xmx
tCrowD Dec 14, 2021 @ 9:12am 
Originally posted by Gay Rat Wedding Officiator:
While it's a visual thing, I'd recommend restarting your server automatically using scripts or cronjobs every day at midnight, if you're not renting one out.
Do you have any guide or tips how to do it? Like useful links or videos?
Last edited by tCrowD; Dec 14, 2021 @ 9:13am
grahame Dec 14, 2021 @ 9:14am 
Personally I have to use G1GC because my server runs Windows Server 2016... Unfortunately PZ doesn't auto detect that so I have to "fix" the batch file every update
< >
Showing 1-15 of 15 comments
Per page: 1530 50

Date Posted: Dec 14, 2021 @ 4:43am
Posts: 15