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
Akaun
AkaunOP3mo ago
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
Jckf
Jckf3mo ago
How much LOD generation affects your server's performance will entirely depend on the server and the mods/datapacks installed.
Akaun
AkaunOP3mo ago
Okay but this is only temporary right? Until it's done generating
Skillnoob_
Skillnoob_3mo ago
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
YAGPDB.xyz
YAGPDB.xyz3mo ago
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.
Akaun
AkaunOP3mo ago
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
Skillnoob_
Skillnoob_3mo ago
I'm trying to figure that out as well lol, they don't say that anywhere
Akaun
AkaunOP3mo ago
Lol But either way, there'll be a point when it's done generating those LODs, right? The 1028 chunks
Skillnoob_
Skillnoob_3mo ago
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
Akaun
AkaunOP3mo ago
[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
Skillnoob_
Skillnoob_3mo ago
Might have been a different command Its dh debug
Akaun
AkaunOP3mo ago
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
Skillnoob_
Skillnoob_3mo ago
64 threads? Thats a lot
Akaun
AkaunOP3mo ago
Does that mean it's good enough or too much? I'm not as experienced with this
Skillnoob_
Skillnoob_3mo ago
My 9950x3d has 32 threads, yes, that is a lot
Akaun
AkaunOP3mo ago
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
Skillnoob_
Skillnoob_3mo ago
Or the server has access to less and the cpu it runs on is simply some sorta epyc
Akaun
AkaunOP3mo ago
So it is doing something right now, right?
Skillnoob_
Skillnoob_3mo ago
Did you run the pregen command
Akaun
AkaunOP3mo ago
No LOL Did I f up
Skillnoob_
Skillnoob_3mo ago
Then its not pregenerating dh pregen start overworld 0 0 1024 Also you don't need to be on the server
Akaun
AkaunOP3mo ago
Do 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
Skillnoob_
Skillnoob_3mo ago
.
Akaun
AkaunOP3mo ago
Yeah I did htat Apparently it's finished
Skillnoob_
Skillnoob_3mo ago
You didn't copy the 4
Akaun
AkaunOP3mo ago
LOL Yeah Just noticed Doing it now So this could be what was causing the lag? the network issue
Skillnoob_
Skillnoob_3mo ago
Did you switch to the nightly
Akaun
AkaunOP3mo ago
Yep
Skillnoob_
Skillnoob_3mo ago
Then just wait until its done
Akaun
AkaunOP3mo ago
[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
Skillnoob_
Skillnoob_3mo ago
:shrug: Mc server struggeling because DH is eating the cpu
Akaun
AkaunOP3mo ago
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?
hardester
hardester3mo ago
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.
Akaun
AkaunOP3mo ago
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
hardester
hardester3mo ago
I'll say 8 is minimum. If your server constantly hitting above 80% memory used, you will need to add more.
Akaun
AkaunOP3mo ago
Not sure if this is a bug, but Gportal showed this in the ram usage right now 13917 MB Ah I see
hardester
hardester3mo ago
Not familiar with G-Portal, so I can't say for sure if it's the game's memory or the server's memory.
Akaun
AkaunOP3mo ago
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
Skillnoob_
Skillnoob_3mo ago
I would guess something is wrong with the way gportal setup the server because its most likely not supposed to be reporting 64 threads
Akaun
AkaunOP3mo ago
Ah I see The ms is lower a bit now I think and the server isn't crashing But it's clearly lagging
Skillnoob_
Skillnoob_3mo ago
A server of that price tier might have 3 VCPUs allocated
Akaun
AkaunOP3mo ago
Maybe I have pretty heavy mods running I'm using things like epic fight, ice and fire, iron spells, etc (59 cps, 3%)
Skillnoob_
Skillnoob_3mo ago
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
Akaun
AkaunOP3mo ago
Okay
Skillnoob_
Skillnoob_3mo ago
But then it will be awfully slow when generating
Akaun
AkaunOP3mo ago
[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
Skillnoob_
Skillnoob_3mo ago
Numberofthreads
Akaun
AkaunOP3mo ago
Okay will change that now To 2?
Skillnoob_
Skillnoob_3mo ago
If you want a 1024 radius you should generate that on your local pc Yes
Akaun
AkaunOP3mo ago
I mean, it already generated 100 chunks 200*
Skillnoob_
Skillnoob_3mo ago
200 is nothing compared to 1024
Akaun
AkaunOP3mo ago
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
Skillnoob_
Skillnoob_3mo ago
Thats the radius Yea
Akaun
AkaunOP3mo ago
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
Skillnoob_
Skillnoob_3mo ago
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
Akaun
AkaunOP3mo ago
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
Distant Chat
Distant Chat3mo ago
=============== Help ===============
/help | Get a list of available commands
/info | Query server running status
/stats <type> <name> | Query the scoreboard for a statistic
/update | Check for update
/console <command> | Execute a command in the server console (admin only)
/log <file> | Get the specified server log (admin only)
/reload | Reload Discord-MC-Chat config file (admin only)
/stop | Stop the server (admin only)
/whitelist <player> | Add a player to the server whitelist (admin only)
=============== Help ===============
/help | Get a list of available commands
/info | Query server running status
/stats <type> <name> | Query the scoreboard for a statistic
/update | Check for update
/console <command> | Execute a command in the server console (admin only)
/log <file> | Get the specified server log (admin only)
/reload | Reload Discord-MC-Chat config file (admin only)
/stop | Stop the server (admin only)
/whitelist <player> | Add a player to the server whitelist (admin only)
Jckf
Jckf3mo ago
@Yeshi (GMT+2) lol
Yeshi
Yeshi3mo ago
:cou: I'm off to fight with discord permissions, 1 sec

Did you find this page helpful?