Too Much RAM & CPU usage :(

It's my first time using DH is it normal that it' uses all my ram? It uses it until it reach 100% memory and I have to restart my computer, also my CPU usage (8cores) is 100% for all cores while with loads of mods it's only around 30 %. I need help to setup the configurations so i can play. Would be nice to have some explanations along this process so I can understand what DH is doing too.
114 Replies
majo24
majo24•6mo ago
How much RAM do you have allocated and how much total RAM do you have? And why do you have to restart you PC? You can decrease the CPU Load setting to make DH not use as much of your CPU
ArThur
ArThurOP•6mo ago
Has 16gb MC has 3gb
Miki_P98
Miki_P98•6mo ago
It is very low, try allocating 6
ArThur
ArThurOP•6mo ago
oh? why
majo24
majo24•6mo ago
DH requires a lot of RAM due to minecrafts world gen which is memory hungry Well, it only requires a lot of RAM when using Distant Generation
ArThur
ArThurOP•6mo ago
ok so... disable Distant Gen? does it even make sense to do it?
majo24
majo24•6mo ago
No, don't disable it unless you want DH only to render chunks you've previously explored. Rather just increase the allocated RAM
ArThur
ArThurOP•6mo ago
ok Also there's this render radius thing would it help my RAM?
majo24
majo24•6mo ago
DH doesn't use much RAM for rendering, so it wouldn't help much.
Miki_P98
Miki_P98•6mo ago
maybe a bit, by not by a lot
majo24
majo24•6mo ago
You have enough total RAM, just allocate some more
Miki_P98
Miki_P98•6mo ago
CPU load impacts RAM though
ArThur
ArThurOP•6mo ago
how do i do?
majo24
majo24•6mo ago
Do what? Allocate more RAM?
ArThur
ArThurOP•6mo ago
no this
majo24
majo24•6mo ago
Decrease CPU Load?
Miki_P98
Miki_P98•6mo ago
/config
YAGPDB.xyz
YAGPDB.xyz•6mo ago
To edit the config, press the button next to the FOV slider to edit the config. The config file found in .minecraft/config/DistantHorizons.toml
ArThur
ArThurOP•6mo ago
hmm yes crash after 100% ram usage it consumes ram idefinitely I it keeps consuming more and more util my pc freezes then game crashes
Miki_P98
Miki_P98•6mo ago
Then allocate more
ArThur
ArThurOP•6mo ago
when i say 100% i mean the 16gb dh goes over the memory alocated for the game. How? ... (idk)
Miki_P98
Miki_P98•6mo ago
maybe GC breaks, allocate 6 GB and see what happens
ArThur
ArThurOP•6mo ago
GC? mc already has the 6gb too
Miki_P98
Miki_P98•6mo ago
Garbage Collector, a thing is JAVA that is responsible for freeing up RAM after something in the program uses it
ArThur
ArThurOP•6mo ago
even when i tell DH to only render pre-gen chunks i have to restart Computer Why would the GC break it work without DH
Miki_P98
Miki_P98•6mo ago
If an app should use max X GB of RAM, and it goes over it, something is not okay So when DH exeded the limit, GC might have gone "crazy"
ArThur
ArThurOP•6mo ago
is it because i'm on linux?
Miki_P98
Miki_P98•6mo ago
Don't think so /logstore
YAGPDB.xyz
YAGPDB.xyz•6mo ago
You should send your latest.log file to provide additional useful information. Logs are located in the .minecraft/logs directory. On Windows: %appdata%\.minecraft\logs On Linux: ~/.minecraft/logs On Mac: ~/Library/Application Support/minecraft/logs Please upload the file to mclo.gs instead of sending the raw file. This makes reading the contents of the file a lot easier and improves the chances of you getting the help needed. After uploading the file, click on Save and send the link.
Miki_P98
Miki_P98•6mo ago
Send logs after the crash happens
ArThur
ArThurOP•6mo ago
Miki_P98
Miki_P98•6mo ago
That is a lot of mods, does it happen with only DH installed?
ArThur
ArThurOP•6mo ago
yes yes
Miki_P98
Miki_P98•6mo ago
does completely disabling distant generation and reducing CPU impact help? try adding mod: Ferritecore it decreases RAM usage
ArThur
ArThurOP•6mo ago
ok that memory leak fix mod too didn't work had to turn game off before 100% mem usage
Miki_P98
Miki_P98•6mo ago
So: Distant generation disabled CPU impact at minimum only other mods then DH are Ferritecore and MemoryLeakFix you allocated 6 out of 16 GB to MC And you still hit 100% RAM in game, then MC goes over this and your PC freezes?
ArThur
ArThurOP•6mo ago
Wait only ferrite DH and MemLeakFix? no wait brb Loading a load of chuncks with an elytra Only uses 1/2 MC memory i.e 3gb no mods only the 3 you said now... it allocates memory outside minecraft almost reached 100% rn when i shutdown the game Ram goes back to my regular 20% usage @Miki_P98 ?
Puhpine
Puhpine•6mo ago
thats normal. the ram you allocate is only a part of the total ram it will use
ArThur
ArThurOP•6mo ago
playing the game without DH allow me to use elytra and load thousands of chuncks for more than an hour with dh 5min and the pc's ram is at 100%
Puhpine
Puhpine•6mo ago
yea, because DH is trying to load chunks a lot faster, and that uses more ram you can set cpu load lower if you really want lower ram usage
ArThur
ArThurOP•6mo ago
i did do you think i have mem leaks with dh because vanilla sometimes free memory but dh just keep allocating more even chuncks not in its raduis anymore How does work for you is memory stable where does it plateaux (does it?). :cou:
Puhpine
Puhpine•6mo ago
probably not how much ram did you allocate? at max cpu load? when i allocate 12 gigs it takes all of it
ArThur
ArThurOP•6mo ago
uh o i have 16gb total (COMPUTER) 6 for MC
Puhpine
Puhpine•6mo ago
yea, allocating 12 should be fine in most cases unless you have a few too many chrome tabs open try allocating 10
ArThur
ArThurOP•6mo ago
ok so sys(3gb) + mc(12) = 15 15/16 my guy... you sure about this?
Puhpine
Puhpine•6mo ago
no, thats why i recommended 10 not 12
ArThur
ArThurOP•6mo ago
ok
Puhpine
Puhpine•6mo ago
and if you do go over 16 gigs, its not like your pc will explode it will just slow down
ArThur
ArThurOP•6mo ago
Hear me out... If DH allocates outside of MC wouldn't it cause mem leaks at runtime?
Puhpine
Puhpine•6mo ago
If DH allocates outside of MC
what do you mean with that
ArThur
ArThurOP•6mo ago
if i do 3gb(system) + 6dg(Minecraft) = 9/16 gb but with dh i do over 9gb of ram it allocates outside of the 6gb no? then... maybe Java is made in a way where the GC can only manage memory allocated in the program total ram or something :cou: Then
Puhpine
Puhpine•6mo ago
no, as i said, the memory you allocate is only a part of the memory system. other parts of the memory system in java will take more than that
ArThur
ArThurOP•6mo ago
omg this does not make sense come on now ye you can play with DH for hours?
Puhpine
Puhpine•6mo ago
i can
ArThur
ArThurOP•6mo ago
whole play session? that reply with your pfp expression (T _ T)
Puhpine
Puhpine•6mo ago
lol what do you mean? i never run out of ram while playing no
ArThur
ArThurOP•6mo ago
let's say you lauch world at 9am
Puhpine
Puhpine•6mo ago
even after playing for hours
ArThur
ArThurOP•6mo ago
ah omoshiroi How much ram do you have?
Puhpine
Puhpine•6mo ago
32
ArThur
ArThurOP•6mo ago
uh oh 💀
Puhpine
Puhpine•6mo ago
but it never takes more than like 13 anyway
ArThur
ArThurOP•6mo ago
let's try this
Puhpine
Puhpine•6mo ago
just set cpu load not higher than balanced and allocate 10 gigs and youll be fine
ArThur
ArThurOP•6mo ago
is it possible that Linux is the source of my troubles cuz even with vanilla i got close to 15gb (plz god let me be wrong on this)
Puhpine
Puhpine•6mo ago
probably not ive never had memory issues on linux
ArThur
ArThurOP•6mo ago
you on linux?
Puhpine
Puhpine•6mo ago
used to
ArThur
ArThurOP•6mo ago
DH?
Puhpine
Puhpine•6mo ago
decided its not for me yet yep
ArThur
ArThurOP•6mo ago
maybe it's the Minecraft game wink wink Already 9.7gb 10gb I am at 90% of my computer's ram
Puhpine
Puhpine•6mo ago
thats fine still have some left
Stephen5311
Stephen5311•6mo ago
I just read this whole thread, did I miss where he said how far his render distance for DH is set to? Maybe it's set too high?
Puhpine
Puhpine•6mo ago
vanilla chunks are not very memory hungry especially if hes using sodium/embeddium can do 32 chunks easily at 2 gigs
ArThur
ArThurOP•6mo ago
I died boss
Puhpine
Puhpine•6mo ago
wha
ArThur
ArThurOP•6mo ago
(T _ T) game crashed
Puhpine
Puhpine•6mo ago
oof i guess 10 is too much lol
ArThur
ArThurOP•6mo ago
it was actually fine for a moment then the swap memory reached 100% and the ram did like wise the crash log says maybe raise the cpu load which makes sense
Puhpine
Puhpine•6mo ago
raise? are you sure it didnt say lower?
ArThur
ArThurOP•6mo ago
No description
Puhpine
Puhpine•6mo ago
ah that message yea that indeed means you need to lower cpu load
ArThur
ArThurOP•6mo ago
omg i was at lowest
Puhpine
Puhpine•6mo ago
what cpu do you have?
ArThur
ArThurOP•6mo ago
11th Gen Intel® Core™ i7-1165G7 @ 2.80GHz × 8
Puhpine
Puhpine•6mo ago
hhmm should be fine on the lowest cpu load preset how much is your cpu used acording to task manager in minecraft?
ArThur
ArThurOP•6mo ago
all cores average 80%
Puhpine
Puhpine•6mo ago
oh thats a lot for minimal how high is it without DH?
ArThur
ArThurOP•6mo ago
oh no thats balanced all under 20%
Puhpine
Puhpine•6mo ago
alright thats more like it did the server overloaded message apear at balanced or minimal?
ArThur
ArThurOP•6mo ago
both even while we were talking and game was on pause something was allocating memory
Puhpine
Puhpine•6mo ago
yea, the game is always allocating more memory
ArThur
ArThurOP•6mo ago
(T_T) DH is not for me or maybe it's not a good idea to use it with elytras
Puhpine
Puhpine•6mo ago
you can play with distant generation off if it really doesnt work probably not no because then vanilla world gen and DH world gen are running at the same time using even more memory
ArThur
ArThurOP•6mo ago
ok now lets say i have to use terralith and tectonic with DH DH gen is false TT
Puhpine
Puhpine•6mo ago
oh then im out of ideas your pc should be entirely capable of running DH
ArThur
ArThurOP•6mo ago
shrugs
Miki_P98
Miki_P98•6mo ago
My last idea, update/change your JDK and use custom GC flags
ArThur
ArThurOP•6mo ago
if I change JDK do I get over v17? do i just reinstall? and if using flags what are those
Miki_P98
Miki_P98•6mo ago
JAVA 21 has more GC options, and works with MC versions that uses 17 Custom options for the GC for it to work better I don’t have my set of flags I can give you a basic set You can also Google some flags Look for generational Z GC (only on JAVA 21+)
ArThur
ArThurOP•6mo ago
ok where do i go to specify the flags? the minecraft launcher? or is it a config thing in the jdk
Puhpine
Puhpine•6mo ago
yes the minecraft launcher
ArThur
ArThurOP•6mo ago
is there a mod to place blocks on slabs?
Puhpine
Puhpine•6mo ago
What do you mean? You can already place a block on a slab If you mean placing the block right on top of a bottom slab, why not place twee slabs on that slab instead?
ArThur
ArThurOP•6mo ago
i have this realistic forgery mod and the anvil is to short my back hurt just by looking at it fr
ArThur
ArThurOP•6mo ago
:(
No description
Puhpine
Puhpine•6mo ago
That's like impossible to fix I doubt any mod exists that makes blocks be able to occupy two half blocks at the same time
ArThur
ArThurOP•6mo ago
:cou: I am using JDK 21 and now minecraft does free memory anymore. Vanilla terrain gen almost froze my pc
Puhpine
Puhpine•6mo ago
That's a really weird problem that I've not heard before. I honestly have no idea how that could happen. Maybe your jdk 21 installation got corrupted? Maybe you picked a GC that is not fit for minecraft? Maybe you allocated too much ram?
M3R C01L!!
M3R C01L!!•6mo ago
mod name and is there fabric version
ArThur
ArThurOP•6mo ago
wdym the smithing anvil?
M3R C01L!!
M3R C01L!!•6mo ago
yes is it the one in terrafirmacraft
ArThur
ArThurOP•6mo ago
no it's realistic forging it will take you more than the 10min vanilla takes to be full iron forge/neoforge sadly it adds nice animation in the process of smithing and the gameplay is cool if you like those kind of "relaxing" thing you can't do irl
M3R C01L!!
M3R C01L!!•6mo ago
pl ok
Want results from more Discord servers?
Add your server