Server with G-Portal and about 50 mods and 6GB Ram
Need help understanding something
So we just started our server and we're like 4-5 players max but I'm the only one on now. I started the server up and got on but it seems like the server is lagging like crazy, is this because it's loading LOD chunks for DH or what? I didn't do anything special other than moving the same DH Jar file over to my server, how does DH work on servers? I'm a bit confused
60 Replies
Should the server be lagging like crazy until it's done loading a specific amount of LODs? I think I have it set to 1028
By lagging I mean rubberbanding, lag desync
How much LOD generation affects your server's performance will entirely depend on the server and the mods/datapacks installed.
Okay but this is only temporary right? Until it's done generating
How many cores or vcpus does your server have access to?
@Akaun the nightly has some fixes for things that were accidentally handled on the server thread
!nightly
Nightly is a newer than latest stable release version of the mod. Every single code change results in a new nightly build. Nightly builds can be unstable and contain experimental features, but they can also contain new bug fixes that are not yet present in the stable release.
Oh okay I see
I'm not sure I know, I'll check the gportal website but all we did was choose the 6GB Ram option
I'm guessing we need more
I'm trying to figure that out as well lol, they don't say that anywhere
Lol
But either way, there'll be a point when it's done generating those LODs, right?
The 1028 chunks
Run the command
dh config common.threadPreset I_PAID_FOR_THE_WHOLE_CPU
and then run dh status
, it should say how many threads there are[15:35:05] [Server thread/WARN] [minecraft/MinecraftServer]: Can't keep up! Is the server overloaded? Running 3076ms or 61 ticks behind
dh status says invalid argument
Might have been a different command
Its
dh debug
World Gen/Import, Tasks: 0, Done: 8,320, Active: 2/64, Avg: 1,447ms
File Handler, Tasks: 0, Done: 23,031, Active: 0/64, Avg: 7ms
Update Propagator, Tasks: 0, Done: 25,927, Active: 2/64, Avg: 167ms
LOD Builder, Tasks: 0, Done: 33,047, Active: 0/64, Avg: 29ms
Networking, Tasks: 0, Done: 5,100, Active: 0/64, Avg: 118ms
Queued chunk updates: 0 / 128,000
SERVER_ONLY World with 4 levels
[minecraft:the_nether]
World Gen/Import Tasks: 0/0 (in progress 0)
[minecraft:the_end]
World Gen/Import Tasks: 0/0 (in progress 0)
[twilightforest:twilight_forest]
World Gen/Import Tasks: 0/0 (in progress 0)
[minecraft:overworld]
World Gen/Import Tasks: 0/0 (in progress 0), 38,444 chunks/sec
Sorry for the mess lol, didn't know what to copy
Should I try installing the nightly dh?
Not sure if it would make much of a difference considering the server's ping is extremely high
Even though it usually isn't, tried g-portal before and they're quite efficient
64 threads? Thats a lot
Does that mean it's good enough or too much?
I'm not as experienced with this
My 9950x3d has 32 threads, yes, that is a lot
Ah okay so the cpu itself isn't the issue
World Gen/Import, Tasks: 0, Done: 10,982, Active: 2/64, Avg: 1,614ms
This is now
Or the server has access to less and the cpu it runs on is simply some sorta epyc
So it is doing something right now, right?
Did you run the pregen command
No LOL
Did I f up
Then its not pregenerating
dh pregen start overworld 0 0 1024
Also you don't need to be on the serverDo I need to log out?
Ah okay
[15:55:51] [DH-PriorityTaskPicker Thread[27]/INFO] [Di.se.di.co.ge.PregenManager/]: Generated radius: 101.7 / 102 chunks (874 cps, 99%), ETA: 0s
[15:55:51] [DH-PriorityTaskPicker Thread[27]/INFO] [minecraft/MinecraftServer]: Pregen is complete
I'm guessing I should change the amount of chunks
To pregen
.
Yeah I did htat
Apparently it's finished
You didn't copy the 4
LOL Yeah
Just noticed
Doing it now
So this could be what was causing the lag?
the network issue
Did you switch to the nightly
Yep
Then just wait until its done
[16:07:02] [Server thread/WARN] [minecraft/MinecraftServer]: Can't keep up! Is the server overloaded? Running 44962ms or 899 ticks behind
This showed up in the middle of the pregenning, just thought I'd let you know
:shrug:
Mc server struggeling because DH is eating the cpu
Lol yeah
Btw, would you reommend more than 6gb ram for a server that has DH, terralith/tectonic and around 88 mods?
Or is that enough?
6 GB for just Distant Horizons is adequate. Once you have people online or start adding mods, well you will need more than that.
Our SMP goes as high as 24 GB with like 20 players online.
We're only 5 players and we have around 88 mods with DH, how much would you recommend for us?
Based on experience, cause I can't seem to know how much we need
I'll say 8 is minimum. If your server constantly hitting above 80% memory used, you will need to add more.
Not sure if this is a bug, but Gportal showed this in the ram usage right now
13917 MB
Ah I see
Not familiar with G-Portal, so I can't say for sure if it's the game's memory or the server's memory.
It does say it's the server's memory
x.x
Hey skill
Do you know if it's normal that gportal is showing me it's using 15,400 gb ram for the server?
The server's capacity is only 8gb
It keeps crashing because it's using too much ram
Always around 15,000
Is this because of the "I paid for the whole cpu" thingy
Nevrmind I changed it to balanced and the server's MS still seems to be high
I would guess something is wrong with the way gportal setup the server because its most likely not supposed to be reporting 64 threads
Ah I see
The ms is lower a bit now I think and the server isn't crashing
But it's clearly lagging
A server of that price tier might have 3 VCPUs allocated
Maybe I have pretty heavy mods running
I'm using things like epic fight, ice and fire, iron spells, etc
(59 cps, 3%)
The only thing that matter to DH are ones that influence world gen
Try stopping the server, then going in the DH config file and changing the thread count to 2
Okay
But then it will be awfully slow when generating
[common.multiThreading]
#
# How many threads should be used by Distant Horizons?
numberOfThreads = 32
#
# A value between 1.0 and 0.0 that represents the percentage
# of time each thread can run before going idle.
#
# This can be used to reduce CPU usage if the thread count
# is already set to 1 for the given option, or more finely
# tune CPU performance.
threadRunTimeRatio = "1.0"
This is how it is currently
Numberofthreads
Okay will change that now
To 2?
If you want a 1024 radius you should generate that on your local pc
Yes
I mean, it already generated 100 chunks
200*
200 is nothing compared to 1024
I think that's good enough for a while
Yeah I know, but I mean if it won't cause lag as we play
It can keep generating
Thats the radius
Yea
Yo, I actually think it's not lagging
LOL
Let me try logging on
But why 2? Why didn't we make it like 16 or so?
Also I changed my ram size from 6-8 so I might move that back to 6 then since it might be just a waste of moeny
Okay so
It's definitely still laggging but it's WAY better
Like I can actually do things
The MS does reach around 2000 though
And ram seems to be hitting 19,000..
That's more than what it was before, 15,000
If there's a way to pregen the chunks on my PC, I can do it I'm using an i7 13700k
But idk the steps of moving it to the server
Because I'm pretty sure a 6gb server is not supposed to have access to 32 cores
A server like that on a provider like that would cost you a fortune
I understand
I've set it to 12GB Ram by the way
It stilll gets MS issues but I'll wait until it's done with the 1024 chunks and see what happens
@Yeshi (GMT+2) lol
:cou:
I'm off to fight with discord permissions, 1 sec