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
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 CPUHas 16gb MC has 3gb
It is very low, try allocating 6
oh? why
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
ok so... disable Distant Gen?
does it even make sense to do it?
No, don't disable it unless you want DH only to render chunks you've previously explored. Rather just increase the allocated RAM
ok
Also there's this render radius thing would it help my RAM?
DH doesn't use much RAM for rendering, so it wouldn't help much.
maybe a bit, by not by a lot
You have enough total RAM, just allocate some more
CPU load impacts RAM though
how do i do?
Do what? Allocate more RAM?
no
this
Decrease CPU Load?
/config
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
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
Then allocate more
when i say 100% i mean the 16gb
dh goes over the memory alocated for the game. How?
... (idk)
maybe GC breaks, allocate 6 GB and see what happens
GC?
mc already has the 6gb too
Garbage Collector, a thing is JAVA that is responsible for freeing up RAM after something in the program uses it
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
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"
is it because i'm on linux?
Don't think so
/logstore
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.Send logs after the crash happens
That is a lot of mods, does it happen with only DH installed?
yes
yes
does completely disabling distant generation and reducing CPU impact help?
try adding mod: Ferritecore
it decreases RAM usage
ok that memory leak fix mod too
didn't work
had to turn game off before 100% mem usage
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?
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 ?
thats normal. the ram you allocate is only a part of the total ram it will use
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%
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
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:
probably not
how much ram did you allocate?
at max cpu load? when i allocate 12 gigs it takes all of it
uh o
i have 16gb total (COMPUTER)
6 for MC
yea, allocating 12 should be fine in most cases
unless you have a few too many chrome tabs open
try allocating 10
ok so sys(3gb) + mc(12) = 15
15/16 my guy...
you sure about this?
no, thats why i recommended 10 not 12
ok
and if you do go over 16 gigs, its not like your pc will explode
it will just slow down
Hear me out... If DH allocates outside of MC wouldn't it cause mem leaks at runtime?
If DH allocates outside of MCwhat do you mean with that
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
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
omg this does not make sense come on now
ye
you can play with DH for hours?
i can
whole play session?
that reply with your pfp expression (T _ T)
lol
what do you mean?
i never run out of ram while playing no
let's say you lauch world at 9am
even after playing for hours
ah
omoshiroi
How much ram do you have?
32
uh oh
💀
but it never takes more than like 13 anyway
let's try this
just set cpu load not higher than balanced and allocate 10 gigs and youll be fine
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)
probably not
ive never had memory issues on linux
you on linux?
used to
DH?
decided its not for me yet
yep
maybe it's the Minecraft game wink wink
Already 9.7gb
10gb
I am at 90% of my computer's ram
thats fine
still have some left
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?
vanilla chunks are not very memory hungry
especially if hes using sodium/embeddium
can do 32 chunks easily at 2 gigs
I died boss
wha
(T _ T) game crashed
oof
i guess 10 is too much
lol
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
raise? are you sure it didnt say lower?
ah that message
yea that indeed means you need to lower cpu load
omg
i was at lowest
what cpu do you have?
11th Gen Intel® Core™ i7-1165G7 @ 2.80GHz × 8
hhmm should be fine on the lowest cpu load preset
how much is your cpu used acording to task manager in minecraft?
all cores average 80%
oh thats a lot for minimal
how high is it without DH?
oh no thats balanced
all under 20%
alright thats more like it
did the server overloaded message apear at balanced or minimal?
both
even while we were talking and game was on pause
something was allocating memory
yea, the game is always allocating more memory
(T_T) DH is not for me
or maybe it's not a good idea to use it with elytras
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
ok now lets say i have to use terralith and tectonic
with DH
DH gen is false TT
oh
then im out of ideas
your pc should be entirely capable of running DH
shrugs
My last idea, update/change your JDK and use custom GC flags
if I change JDK do I get over v17? do i just reinstall?
and if using flags what are those
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+)
ok
where do i go to specify the flags?
the minecraft launcher?
or is it a config thing in the jdk
yes the minecraft launcher
is there a mod to place blocks on slabs?
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?
i have this realistic forgery mod and the anvil is to short
my back hurt just by looking at it
fr
:(
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
:cou:
I am using JDK 21 and now minecraft does free memory anymore. Vanilla terrain gen almost froze my pc
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?
mod name and is there fabric version
wdym
the smithing anvil?
yes
is it the one in terrafirmacraft
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
pl
ok