We received a notice in the application log that stated this:
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 (730218496 bytes) is less than 5% of total memory.
Workflow was using massive amounts of memory to cache information and improve performance, so much memory that it shut down it's own API to maximize it's performance. But shutting down the API is not worth improving the performance slightly, especially when there has not been any performance issues yet.
We found that the Workflow Service was the cause of the high memory usage. Workflow was using over 4GB of RAM when in reality the current requested data could fit within a 200MB range.
There was literally 4GB of unnecessary memory storage found by restarting the service and clearing the excess caching.
I am fine with caching in memory, but can we limit this so that it does not shut down it's own API just to squeeze a little more data in? I looked through the workflow administration settings and documentation but could not find any memory settings.