Project Zomboid

Project Zomboid

This topic has been locked
print (Banned) Mar 24, 2019 @ 4:47am
RAM allocation
It has been awhile, and even searching past forum discussions, I can't remember how to increase my ram allocation.

Can someone in plain and concise language refresh my memory on how to increase ram usage of the game?
< >
Showing 1-14 of 14 comments
Beard Mar 24, 2019 @ 8:38am 
Go to Steam\steamapps\common\ProjectZomboid
Edit the ProjectZomboid64.bat
Change the -Xms - Xmx to -Xms4gG -Xmx4G for example to set the ram to 4 GB.
Run the game with the bat.

You can also edit the "ProjectZomboid64.json" so the game will always launch with that much ram without having to run the .bat file, I have not tested it though, the ProjectZomboid32.json as well if you use the 32bit version.
VelxraTV (Banned) Mar 24, 2019 @ 9:41pm 
You can also create a shortcut from your projectzomboid.exe and in the target line add in "-Xms1024m -Xmx8192m" Xms being the minimum ram used in megs and Xmx being the maximum ram used in megs. For example I have mine set to one gig minimum and eight gigs max. It is a little simpler than having to edit the bat files.
Last edited by VelxraTV; Mar 24, 2019 @ 9:42pm
print (Banned) Mar 25, 2019 @ 3:09am 
Originally posted by Beard:
Go to Steam\steamapps\common\ProjectZomboid
Edit the ProjectZomboid64.bat
Change the -Xms - Xmx to -Xms4gG -Xmx4G for example to set the ram to 4 GB.
Run the game with the bat.

You can also edit the "ProjectZomboid64.json" so the game will always launch with that much ram without having to run the .bat file, I have not tested it though, the ProjectZomboid32.json as well if you use the 32bit version.

Thx. I thought the bat files were the way... but i cant find them or cant open them right anymore. I think the JSON in a text editor did the trick
print (Banned) Mar 25, 2019 @ 3:10am 
Originally posted by Geronimo:
You can also create a shortcut from your projectzomboid.exe and in the target line add in "-Xms1024m -Xmx8192m" Xms being the minimum ram used in megs and Xmx being the maximum ram used in megs. For example I have mine set to one gig minimum and eight gigs max. It is a little simpler than having to edit the bat files.

thx for the tip, not sure what a target line is. think editing the JSON file worked, but if it doesnt stick I may still want to try this. thx for the help again.
VelxraTV (Banned) Mar 25, 2019 @ 3:52am 
Originally posted by print:
thx for the tip, not sure what a target line is. think editing the JSON file worked, but if it doesnt stick I may still want to try this. thx for the help again. [/quote]

The bat files are the "batch" file type located next to the .exe

and

https://i.imgur.com/HBcFHHa.png
print (Banned) Mar 25, 2019 @ 1:30pm 
Originally posted by Geronimo:
Originally posted by print:
thx for the tip, not sure what a target line is. think editing the JSON file worked, but if it doesnt stick I may still want to try this. thx for the help again.

The bat files are the "batch" file type located next to the .exe

and

https://i.imgur.com/HBcFHHa.png [/quote]

thx for the photo, makes sense now. I cant see the bat files but i do have windows batch files. when i try to open them the games starts.
VelxraTV (Banned) Mar 25, 2019 @ 3:19pm 
Your view hidden files is turned off then.
print (Banned) Mar 26, 2019 @ 4:06am 
Originally posted by EnigmaGrey:
Right click the .bat/BATCH/Windows Batch File and either Open With... Notepad or select Edit.

Still think this is a fool's errand, however. Since the vehicle build, the game should never use more than 1.2-1.4 GB of the 2 GB limit. Likewise, the dedicated server no longer consumes enough RAM to blot out the sun, but only 8-9 GB, even when heavily modded.

If you're on 32-bit, then values over 768M (or 1024M, if you're lucky)will either be unstable or not even launch.

Thats what i tried to do, but the batch files would'nt let me "open with." Maybe its user error, but the json files did let me, so i just used it and it looks like it is letting me use 4 gigs now. Granted it may be placebo, but with my heavily modded game I get some stutter sometimes still and it seems to have helped. We'll see for sure when I get to Manhattan.

thx for all the help everybody.
AlexSledge Feb 15, 2022 @ 11:47am 
I know this is an old thread, but...

I did a test where I set max to 8G, then took a look at my game client sitting at the main menu and currently it's at 2.4G. I think 4G should be more than enough for now, but it is higher than 1.2-1.4G mentioned above.

I just edited the ProjectZomboid64.json so it will use those settings all the time. Look for the arguments under the "vmArgs": section, similar to this:

"-Xms2G", "-Xmx4G",

Earlier posters provided the information, I just gave it a quick test. So thanks to you folks.
Borkly Jul 15, 2022 @ 8:51am 
Originally posted by AlexSledge:
I know this is an old thread, but...

I did a test where I set max to 8G, then took a look at my game client sitting at the main menu and currently it's at 2.4G. I think 4G should be more than enough for now, but it is higher than 1.2-1.4G mentioned above.

I just edited the ProjectZomboid64.json so it will use those settings all the time. Look for the arguments under the "vmArgs": section, similar to this:

"-Xms2G", "-Xmx4G",

Earlier posters provided the information, I just gave it a quick test. So thanks to you folks.

Sorry for posting on an old thread but can you help me? I can't seem to find neither of the "-Xms1024m" or the "-Xmx8192m" values in the JSON files. Am I in the right file?

PasteBin Link to File:
https://pastebin.com/gk0nHkRv
Beard Jul 15, 2022 @ 11:00am 
You can see it right below
"-Djava.awt.headless=true",
Borkly Jul 15, 2022 @ 11:20am 
Originally posted by Beard:
You can see it right below
"-Djava.awt.headless=true",
Ok, thank you!
Numerx Jul 20, 2022 @ 12:18am 
Does anyone know how to allocate ram for Project Zomboid, using a mac computer? All the instructions above are for windows.
AlexSledge Jul 20, 2022 @ 3:36am 
Originally posted by andyoid:
Does anyone know how to allocate ram for Project Zomboid, using a mac computer? All the instructions above are for windows.

I haven't installed on OSX yet, but it should be very similar. We are adjusting the RAM allocated to the Java process, which is the same across platforms.

See: https://pzwiki.net/wiki/Mac
In the example runzomboid.sh you can see the -Xms1024m -Xmx1024m values. Adjust them as desired.
< >
Showing 1-14 of 14 comments
Per page: 1530 50

Date Posted: Mar 24, 2019 @ 4:47am
Posts: 14