I am currently running an MC Forge server running a custom modpack.
I have backups scheduled every 6 hours. Whenever AMP takes a backup the RAM usage on the VM goes up by the size of the backup.
Using htop on shows that no process is actually using the RAM and that most of it is just cache, presumably from the backup process.
Steps to reproduce:
Run a server
Take a backup
don’t profit
Actions taken to resolve so far:
restoring a backup for AMP from a point in time where I know this didn’t happen
using sync; echo 1 > /proc/sys/vm/drop_caches on the VM clears the cache and “fixes” the issue, but I don’t want to run a command every time I take a backup.
Will I be forced to reinstall AMP or is there anything else I can do?
If it’s just caches then by definition you don’t need to worry about this, because the cache will be cleared automatically as soon as a process actually needs that RAM. The cache gets filled up because AMP is reading every single file. There’s no problem and no action needs to be taken. If the memory usage of AMP itself isn’t increasing then it’s not a memory leak.
Well, yeah makes sense but it is still kinda a problem since I am running multiple vms on my system and the cache still counts towards the ram usage of the vm in proxmox limiting the amount other vms can take.