Page MenuHomeFeedback Tracker

Memory Leak
Assigned, NormalPublic

Description

I've been playing 1.15 and have been noticing that DayZ always uses up all of the available memory. The amount of time needed to use all the memory seems variable. Possibly happens more quickly if I'm in towns and cities.

I've been trying to experiment with the various in-game settings to see if it affects the leak. Not sure, but when I set my rendering settings much lower (especially shadow quality?), it seems to take longer for the memory leak to absorb all of the available resources.

Since you all are working on 1.16 as a "health check" (in the words of ScottyB), could you try to fix this issue? It would help PC players out a lot, as the only solution to fixing this is to restart the game entirely and hope that the memory leak doesn't hit you when you're in the middle of a firefight.

Specs:
CPU: Intel i5-3570
Memory: 8 GB DDR3
GPU: Nvidia GTX 670 2 GB
HDD: 500 GB SSD

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Engine

Event Timeline

silencerx updated the task description. (Show Details)Jan 24 2022, 6:53 PM
Geez changed the task status from New to Need More Info.Jan 25 2022, 4:06 PM
Geez added a subscriber: Geez.

Hello silencerx.
Can you please try if the following improves anything?

Verify the game data through Steam and delete the configuration files when prompted to do so (make sure Steam cloud sync is disabled for DayZ before doing this) - you can also delete the config files manually by clearing the C:\Users\*username*\Documents\DayZ folder

Open the DayZ launcher
Select PARAMETERS menu
Select ALL PARAMETERS tab
scroll down and check "Bulldozer" parameter
Launch the game
Once launched, close the game
Uncheck bulldozer
Launch the game again without any parameters

Also, do you experience this on modded servers only or does it occur on official as well?
Regards,
Geez

I've experienced this on an community server which has no mods - it does have server-side customizations (loot spawn and stamina modifiers):
#1|FRESHSPAWNS |EU|1PP|Vanilla|More Loot|No Mods|More Stamina
91.189.179.58:2302

I tried out the method you outlined, and then monitored the memory usage closely as I played. For most of the duration, the memory used would range from 1.5 GB to 3.5 GB. The peak level of memory usage would occur when I visited towns or the edge of Cherno, for instance. Furthermore, I noticed that if I returned to a forest after visiting a town/city where memory usage would reach 3.5 GB, the memory usage would drop relatively soon back down to 1.5 or 2.0 GB.

However this reclaiming of memory usage all changed when I went North to Stary Sobor. After visiting that town my memory was at 4.5 GB (~96 percent of my system's memory was in use here). I returned to a forest again - very deep in the woods - but the memory usage stayed incredibly high, and only dropped to about 4.2 GB. Even if I logged out (returning to the main menu) the memory usage stayed very high. When I logged back in, the memory usage still was very high even though I was not nearby any town or complex area.

Geez added a comment.Jan 26 2022, 12:51 PM

Hello silencerx.
Can you possibly allocate more memory for the game to be available? And are you running any other programs besides DayZ that take up the available ram?
Also keep in mind that you are running the game on hardware that is on the minimum requirements spectrum (the GPU is slightly worse than the one we recommend as minimum) which can also affect how the game runs.
Regards,
Geez

All applications are closed except what is required to run Windows 10 and DayZ (Steam). The OS simply takes up that the remainder of the available memory. This is not really the issue. The issue is that DayZ appears to be allocating memory and then *not* releasing it in certain circumstances. As I noted above, the behavior of the game shows that it deallocates memory correctly in certain circumstances, but not in others. This behavior has nothing to do with system specs.

I can confirm that the game is allocating more and more GPU memory when you play longer sessions and you move through the map, like it is loading new textures but not freeing them when you dont need them anymore, but it tops at around 10.8 GB, I experience this on vanilla official servers with RTX 3090 and also with RTX 2080ti and 16GB of RAM.

Geez changed the task status from Need More Info to Assigned.Jan 28 2022, 10:08 AM
Geez added a comment.Jan 28 2022, 10:17 AM

Thank you.
We will investigate.
Regards,
Geez