Text Process Variables Remain In Memory Until Restart?

I was watching the course Advanced Appian Developer > Design for Scale Using Patterns and Anti-Patterns > Process Management Patterns.

https://academy.appian.com/#/online-courses/9eec0cd2-199a-4c4e-85a8-cb7d044c0718

At about the 2:10 mark the instructor states "Text variables used by a process remain in cache until the next restart so archiving does not immediately remove all data. Do not save large amounts of data in text strings ..."

This sounds an awful lot like a 'memory leak' to me. I thought that all memory for a process was released when the process is deleted or archived? Is this not the case? When is this memory recaptured? When the server is restarted? If so, how are clients who license Appian through the cloud impacted?

  Discussion posts and replies are publicly visible