BeamMP-Server
BeamMP-Server copied to clipboard
Mod upload to client crashes server if not enough ram
Fill out general information OS (windows, linux, ...): Debian 12 docker container on pterodactyl BeamMP-Server Version: 3.4.1
Describe the bug If the host runs out of ram during the upload of a mod, the server crashes
To Reproduce Steps to reproduce the behavior:
- Start a server on a host with limited ram, 128mb for example, while it has a map mod in its resource/client directory, of for example 850mb
- Connect to the server and let the game request the zips download
- The server will load parts of the zip into ram during the upload, but in this example it will crash due to running out of memory (it tries to use about 400mb of ram)
Expected behavior The fileupload should not invoke more memory than what is available at the time