So i installed a brand new fresh install of debian 12 and freepbx 17. I deleted the sangomartapi service as i heard this consumed a lot of resources. Although the CPU usage is very low memory usage without me even using the system yet is hovering at just under 8GB. I allocated the VM 12GB so for it to be using 8GB seems a bit high.
Is there other things that I can disable to make it less clunky?
Update, after shutting it down overnight and resuming this morning. It seems to now be using 1.7GB which is much better. Wonder why it was using 8GB initially? could it have been because all the install processes that were running?
How are you measuring usage? For the last two or so decades, operating systems have tried to use all the available memory, so will retain things in fast memory, in case they are needed again, until they need the memory for something else, to if you look at the wrong statistic you will find that memory use grows to, maybe, 95%, even though the system would perform adequately with much less memory.
My freePBX is running on a ProxMox VM environment. So i was checking the memory usage of the freePBX machine on ProxMox summary. It has been stable at betwen 2 and 3gb since that time though
So the freepbx vm has had an uptime of approx 8 days now. And although initially it was using memory of around 2GB, over the course of the 8 days it gradually has been increasing and now it’s at around just over 4gb memory usage.
The only service I disabled was the sangomartapi. I’m just wondering, if this memory usage is just going to keep climbing. Is there other unneeded services I can disable to make it run a lot more less resource intensive?
Further digging around on this and running the “free -h” command it returns this:
total used free shared buff/cache available
Mem: 11Gi 1.3Gi 7.7Gi 3.7Mi 3.1Gi 10Gi
So it seems that the server itself is only using 1.3GB but the 4.4/4.5GB that is being reported as memory usage is combine diwth the buffer/cache. So the used + the cache combined is what is being reported. But the the avaible is not taking cache into account meaning cache is only holding it because it’s free and will release as it needs.
My question is, is it normal for FreePBX 17 cache to build up this high? the server has had an uptime of approx 3 weeks now and the cache only seems to be growing. Will it keep going up? does it stop at some point?
It’s normal for Linux cache to build up to nearly the whole available memory. Same for Windows NT family, actually. The OS strategy is to keep a few free pages for urgent needs, and to keep everything that has ever been read from, or written to, disk, in case it is ever needed, which is why you should look at the Available figure, not the Free figure.