Skip to main content
jarunb0001
August 14, 2024
Question

Memory Utilization Issue with Deleted Process Instances in Appian

  • August 14, 2024
  • 6 replies
  • 0 views

We have created a process model that retrieves an XML file from an external system and starts a new process instance using the "Start Process" smart service. The second process instance then extracts data from the XML file and stores it in the database.

Despite deleting the process instances after completion, we are experiencing increased memory utilization over time. The memory is not being released from RAM, even after the instances are deleted.

We need to understand the mechanism Appian uses to release memory from deleted instances. Is there a specific Appian process or configuration that ensures memory is properly freed up? If not, are there any additional steps or practices we should follow to manage and optimize memory usage effectively?

6 replies

stefanhelzle0001
August 14, 2024

When storing larger volumes of text in process variables, there is a separate memory just for this. This memory is freed by design only on a restart. The only advice I can give is to keep that XML out of process memory as good as possible.

jarunb0001
August 14, 2024

Do you have any specific advice on how much data we can store in process variables? Additionally, would using activity class parameters in nodes instead of process variables make a difference?

stefanhelzle0001
August 14, 2024

Not sure how you would want to replace a PV with an AC. They have a completely different purpose. In general, try to move the data into a file or the DB ASAP. For incoming XML, a file could be a option. For further processing, use the xpathdocument() function to directly extract sections with loading the XML into process memory.

davidj137213
August 14, 2024

Did you try using hidden variables or deleting the content of the variable after using it?

I'm not confident about if this will release memory, because as Stefan said, is stored in a separate memory..... but could be an option...

jarunb0001
August 14, 2024

stefanhelzle0001 

Should I try using hidden variables or deleting the content of the variables after use? I'm not sure if this will release memory.