Should the workflow API still deny requests if the available memory shows less than 5%
This is the error it throws and it blocks all submissions to the repository if Windows doesn't show at least 5% available memory. But will a Windows file server EVER show this much available memory after several weeks of being online? See below
The service '/Workflow/api' cannot be activated due to an exception during compilation. The exception message is: Memory gates checking failed because the free memory (153640960 bytes) is less than 5% of total memory. As a result, the service will not be available for incoming requests. To resolve this, either reduce the load on the machine or adjust the value of
I have done a lot of research only to find that Windows will always show that there is no available memory on file servers, even when you have plenty available memory.
This is because Microsoft now uses all free memory for file caching, ready to provide it back when a private process requests it. This can not be turned off. On the servers where we see this message, there is only 5GB of memory being used by private processes, with 9GB available sitting in the mapped file. Task manager will show that all memory is in use, but this is considered normal for Microsoft Server Operating systems by every stackoverflow post I have reviewed.
RAMMap shows that the 9GB of memory is in the mapped file just as the community explained and that Windows itself it not throwing any OOM errors.
Here is just one of the several forum posts as an example
https://forums.tomshardware.com/threads/mapped-file-using-a-lot-of-ram-possible-memory-leak.2602303/