Page MenuHomeFeedback Tracker

Heavy RAM usage in mutiplayer (possibel player related memory leak)
Closed, ResolvedPublic

Description

In multiplayer, players from time to time block a huge amount of RAM on the server.
It's also possible that the RAM usage spikes in milliseconds (+500MB/tick). [fig.1]

On the other hand, the blocked MEM will be released when players are disconnecting. (sometimes -2,000 MB) [fig.2]

It would be great if there is a way to check which objects or parts are causing high RAM usage to debug these issues.


Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
General

Event Timeline

mbamg added a subscriber: mbamg.Sep 1 2022, 10:19 PM
Geez changed the task status from New to Awaiting internal Testing.Sep 5 2022, 9:35 AM

Thank you a lot for the report.

I need to ask you for a few additional details because the report is a bit vague:

  1. What mods do you have installed? If any, does it happen without them, too? (we are not aware of this behavior in vanilla)
  2. What map are we talking about?
  3. How many players and AIs are there?
  4. Is there something specific you think triggers this event?

Also do not hesitate to attach your server's logs. They can be very helpful.

Without providing these essential pieces of information it is very difficult to assess what your issue is.

Note that similar issues are usually caused by mods not being careful about what they are doing.
Therefore, I would usually recommend trying also without them (or you can disable them one by one until the culprit is found).

Thanks for your reply.

First i have to say that the massive increases of ram usage in short periods of time are much rarer since the server is running with the reforger version 0.9.6.
But players are still consuming a lot of ram over time. A "fix" we implemented is to kick the player random between 90 to 120 min after he connected.
Down below is a diagram (fig. 3) over a runtime of 4 hours. At the end you can see a masive spike to 12GB where we set a threshhold for auto restarting.
The console.log/script.log/error.log for this timeframe is attached aswell.

For me personal the overall ram usage and networktraffic is way too high.
With a load of 32 players the server is reaching values that we did not touch with 200+ players on Arma 3.
But i know its in an early stage and therefore the enfusion engine with all these tools and possibilities is pretty impressive!!!

If there would be a way for modders to check which part, object, structure or so is using how much RAM it would be very helpful to find potential errors.

Here are the answers to your questions

What mods do you have installed? If any, does it happen without them, too? (we are not aware of this behavior in vanilla)

  • Team ELAN - Arma Life
  • Beetle 1967
  • Vergys Custom Clothing

We already deactivated every mod excepting "Team ELAN - Arma Life".

What map are we talking about?
Everon (Eden.ent)

How many players and AIs are there?
10-32 players
0 AIs

Is there something specific you think triggers this event?
Unfortunately i have absolutly no idea left. We almost changed or checked everything.
But like a said the problem is significannt rarer since the arma version 0.9.6.
The only thing we changed in the mod between 0.9.5 and 0.9.6 was using SCR_JsonSaveContext/SCR_JsonLoadContext instead of JsonApiStruct for saving loadouts.

Geez closed this task as Resolved.Dec 7 2022, 9:43 AM
Geez claimed this task.