Element-0 / ElementZero

Run windows version of BDS in linux with Mod support
GNU General Public License v3.0
273 stars 51 forks source link

High memory usage on wine #141

Open nerga789 opened 4 years ago

nerga789 commented 4 years ago

Hello, i have no idea if this is some kind of memory leak, or if its just the way the server works on wine. Whenever someone joins the server the ram usage goes up and up. Whenever someone enters the area that was not visited during the current launch of the server, memory fills up. Tested it on two installations of ubuntu and on windows. The problem exists on my local ubuntu and the VPS one, but it doesnt happen on vanilla BDS on Windows or on EZ BDS on Windows. I tested the old version of EZ that worked for minecraft 1.16.10, and now im the newest version for 1.16.20, and the problem still exists.

madeofstown commented 4 years ago

Try using the docker image?

Redbeanw44602 commented 4 years ago

This is a problem with Linux's handling of caches, and it requires you to have large memory. Try to use Crontab loop to release memory by yourself, there is no better way.

sync && echo "1" > /proc/sys/vm/drop_caches

"1" will not affect server operation