#How to reduce RAM consumption
13 messages · Page 1 of 1 (latest)
id imagine 16 would be enough, i played for 3 or 4 years on 16 with no notable issues with ram
if anything your issues may be related to the underusage of ram, the game is limiting itself to 3 gigabytes iirc which is fine normally but can cause issues with mods
Project Zomboid is a Java based game, and by default most Java games have a limit to how much RAM they can access. Allowing the game more is quite often a good solution to FPS spikes and overall performance stability
This process will help you increase the allocated RAM. This should provide much more stability. ONLY FOR PEOPLE WITH minimum 16GB RAM and a 64bit Operating System
-
- Make sure your game is closed fully.
-
- Find where your game is installed. For its Windows is usually found here:
C:\Program Files (x86)\Steam\steamapps\common\ProjectZomboid
- Find where your game is installed. For its Windows is usually found here:
-
- Locate the file named
ProjectZomboid64.jsonand open it with your favourite Text Editor (I recommend Notepad++)
- Locate the file named
-
- Find the line that contains
"-Xmx***m",the*s represent the default value. Change this number to be something more than 4GB. It is a binary number, so 4GB = 4096, 8GB = 8192.
- Find the line that contains
I would recommend 8GB if you normally have this spare while running everything else you usually use whilst playing Project Zomboid.
Verifying Files will revert all changes - you will need to do the above process all over again in the event of needed to verify your game files.
but if you do want to decrease it even further then you can do this process just lower the number instead
but fair warning if youre going below the set amount the game is giving itself youre likely to make performance even worse
Thank you very much for such a detailed guide! But I have already read it too. Project Zomboid eats up over 10GB of RAM. It loads the RAM so much that I have to close all background processes and play only Zomboid. But even under such conditions, there are crashes and crashes in the game. I would like to know more about how to optimize the RAM in the game. Or do I need to directly look for optimization for the operating system. Even if I set the value to**.json**, the game still distributes the memory as it wants
[ I apologize in advance for many grammatical errors, I am from a translator ]
I'm talking about the same thing, in theory my 16 GB should be enough. But lately I just don't have enough memory and I'm experiencing quite big problems, if I close all background processes and am on the desktop, my operating system already consumes 15-20% of memory. I tried to look for guides/programs and even found utilities that helped to cope with this problem, but this is only a temporary effect.
the real question here is, do you play vanilla or heavily modded PZ ?
Cause vanilla PZ do not consume that much ram.
It doesn't use that much ram. If you allocate 10gb xmx then it will use up to 10gb because that's how java works. The java does not use what it need, it use what it is allow and doesn't recycle the memory until it reach the cap.
I wouldn't say that it's heavily modified. There are many different mods that add their small part, and in my opinion, they shouldn't load the processor in any way. On the contrary, I mostly use optimizing mods, like the zombie render less or the fps mod that removes chunks in exchange for a higher fps transfer and free space. Therefore, I try to balance this very well.
It works strangely for me, I changed it to the limit of 8 GB and it consumed 9-10 GB
That is because there is java heap memory and non-heap memory. When you set xmx 8gb, it just restrict the heap memory, it doesn't restrict the non-heap, it is not part of the calculation. Just reduce your -xmx.
