I have 24 GB VRAM, 32 RAM. Meaning 24 GB VRAM + 16GB Shared Video Memory.
I’ve just experienced Diablo 4 crashing due to no memory left.
https://i.imgur.com/9XAMDbd.png
AAA game half a year after premiere still has memory leaks? Seriously?
https://i.imgur.com/ImoKy98.png
full vram usage after one dungeon.
3 Likes
The same thing happens to me, I have the same GPU and 32 GB RAM as well (DDR5).
Last time it even crashed my GPU entirely (Windows disabled it due to “issues”).
1 Like
I had the same issues until I tried this.
- Open the Control Panel on your Windows computer. To open it, you can type Control Panel into the Windows search bar.
- Click on “System and Security” and then select “System”
- On the right-hand side of the window, click on “Advanced system settings”
- Under the “Advanced” tab, click on “Settings” in the “Performance” section.
- In the “Performance Options” window, select the “Advanced” tab.
- Click on “Change” in the “Virtual memory” section.
- Uncheck “Automatically manage paging file size for all drives”
- Select the drive that you want to increase virtual memory for and then click on “Custom size”
- Enter the initial size and maximum size for the virtual memory and then click on “Set”
- Click on “OK” to save the changes and then restart your PC for the changes to take effect.
Note: Assuming that your hard drive has enough space available, I suggest setting the Initial size to 20000 MB and Maximum size to 40000 MB for optimal virtual memory allocation.
By following these steps, you can increase the size of virtual memory allocated to your system, providing more space for Diablo 4 to use when needed. This can help prevent Out of Memory errors, improving your overall gaming experience.
1 Like
Pagefile would not fix this error. It would only delay it, and after starting pagefile usage your computer would slow down, as pagefile is much, much, much slower than RAM.
This is not a solution, nor a temporary fix.
Also, pagefile by default is the same size as your ram.
2 Likes
I guess that depends on your system. This has worked for me and many others. I gave it a full 2tb. And I have seen zero slow down on my system.
Lol 2 tb pagefile. Of course it ‘worked’. The memory leak isn’t going to fill 2 terrabytes during 10 hours of gameplay.
2tb pagefile. Oh my, I’ve just encountered a meme in it’s natural habitat.
2 Likes
If it works then it works. I know a few that gave it 250gb and less.
Doing this has helped in many games. I could easily get into the hardware of the pc as my brother has never run into this issue a single time on his system. And it’s a crappy pre-built system.
I’m not sure where to start explaining how incredibly wrong this is as a solution… I’ll at least start with mentioning that I’ve been working in IT for 13 years now and built my own computers since before that time.
The pagefile is a legacy component of Windows that is normally used as an overflow for the scenario where you system RAM is filled up. There are also some (very stubborn) applications that are hard coded to use the Pagefile (at least partially) which is why you can’t fully disable it.
Diablo IV suffers from a massive memory leak, which causes it to fill up VRAM (on your GPU) as well as create a huge a Pagefile without even using more than half of your system’s available RAM. This is because the game doesn’t properly unload data that is no longer required. My GPU has 24 GB of VRAM, this should NEVER be filled up and neither should 32 GB of system RAM. Even if you’re gaming on 4K this won’t happen. It’s an issue with the game itself (perhaps on AMD cards only).
Lastly… The pagefile is a physical file on your drive, nobody in their right mind wants that file to be larger than 2-8 GB at best, especially on an SSD which tends to be 1-2 TB before you start spending a ton of money on it. Constantly mutating that file also leads to a bunch of extra wear and tear for your drive.
TL;DR the Pagefile is a legacy component and should never be used unless absolutely necessary. None of my other games suffer from this issue and I play quite a lot of recently released and graphically demanding games.
Also FYI, 20000 MB is not 2 TB, it’s 20 GB.
You are preaching to the choir. Ibsoent 15 years doing system admin for Electric Boat.
My 6yr old God son built his first computer so not as much of a flex as you think it is.
32gb of ram is becoming the bare minimum these days. But how much ram you have is meaningless as my system is sitting at 128gb of ddr5 corsair dominator ram. I also run a Nvidia 4090.
I know how much it is. Expensive? Wouldn’t know as my system has 48tb of storage. That is not even excluding my home server. I set aside a 4tb drive just for issues like this. As alot of games have memory leaks these days. Which is why the new graphics cards are coming with a added m.2 nvme drive
Don’t use it. But don’t expect it to be fixed either.
idk what is happening to you guys but i dont crash like that at all and i never messed with any pagefile/virtual memory.
I believe it is newer AMD GPUs only. Ive been playing since launch on a rx6650xt no problems. Now i have a 7900xt and the game is unplayable
no, its not
i m having the same “d4 has run out of memory” issue with an rtx2080, 32gb ram and 50gb cache… its a game issue that they need to fix
Didn’t have that issue on season2 btw, now its contant oom every few minutes… playing around with graphic settings did nothing either
1 Like
Thank you so much for this, I just realized my main HD is very small(118gb), and it already barely has room for the paging, so I switched it to my other SSD with 2TB of storage, and this helped my performance by like 50-60%, major improvement! I’ll have to see how WOW plays now when I load it up. Also, I haven’t crashed or had to force close it, it’s been a few hours now. (Still far from perfect though)
This is not a fix, this is a work around for a memory leak and it will fail eventually. Never should any app consume until crash. Throwing more memory at a problem is never the final solution.
AMD or Nvidia doesn’t matter. The game full on causing system crashes due to their poor coding.
The issue was fixed for a while, finally. But guess what? It’s back with VoH.
I can’t play for more than 5 minutes without my VRAM filling up and crashing.