mtasa-blue icon indicating copy to clipboard operation
mtasa-blue copied to clipboard

Memory Leak on Linux Server – RAM Usage Continuously Increases with Player Count (Builds 24153 & 24157)

Open realArshin opened this issue 1 month ago • 0 comments

Describe the bug

There appears to be a significant memory leak in the MTA server when running on Linux.

We have tested this issue on builds 24153 and 24157, which are the latest available builds, and the problem persists on both versions.

As the number of connected players increases, the server's RAM consumption continuously grows. With approximately 900 concurrent players, the server can consume around 20 GB of RAM, eventually leading to a server crash.

The most concerning part is that memory usage does not decrease even after:

All players have disconnected from the server.

All server resources have been restarted.

This suggests that memory is being allocated somewhere within the server process and is not being properly released.

Steps to reproduce

Start an MTA server on a Linux environment.

Allow players to connect to the server.

Gradually increase the number of concurrent players.

Monitor the server's RAM consumption.

Observe that memory usage increases as more players join.

Disconnect all players and monitor memory usage.

Restart all server resources and check RAM consumption again.

Version

Server: v1.6.0-release-24153 (Linux, 64-bit) Server: v1.6.0-release-24157 (Linux, 64-bit)

Additional context

No response

Relevant log output


Security Policy

  • [x] I have read and understood the Security Policy and this issue is not security related.

realArshin avatar Oct 29 '26 20:10 realArshin