Project Zomboid
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?
Отредактировано tCrowD; 14 дек. 2021 г. в 4:45
< >
Сообщения 115 из 15
And I don't think -xms and -xmx properties are working correctly
Отредактировано tCrowD; 14 дек. 2021 г. в 4:44
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?
Отредактировано tCrowD; 14 дек. 2021 г. в 5:04
Thank you!
Отредактировано tCrowD; 14 дек. 2021 г. в 5:13
Well... my server crashed just now
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


Автор сообщения: 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\
Before this happened, server dropped 467 packets (vehicle's physics)
Автор сообщения: 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
Отредактировано tCrowD; 14 дек. 2021 г. в 8:38
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
Should I use G1GC? Is it better than ZGC?
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
Автор сообщения: 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.
Well I use +ZGC and -Xms2048m -Xmx8192m for 20 max players (decreased due previous crash)
Maybe I should increase amount of RAM in -Xmx
Автор сообщения: 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?
Отредактировано tCrowD; 14 дек. 2021 г. в 9:13
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
< >
Сообщения 115 из 15
Показывать на странице: 1530 50

Дата создания: 14 дек. 2021 г. в 4:43
Сообщений: 15