elsa-workflows / elsa-workflows/elsa-core

[BUG]Memory usage cannot be reduced

Open
#5,925 3 comments 0 reactions 0 assignees View on GitHub
bug triaged
Dominant language
C#
Stars
7.9k
Forks
1.5k
Avg merge
15h 22m
Merged PRs (30d)
114

Description

## Description
⁠We set up an Elsa server according to the documentation, but we noticed that memory usage does not release after starting the server and creating workflow instances using the API. Here are the details:

- ⁠Documentation: https://v3.elsaworkflows.io/docs/installation/elsa-server

- Create Workflow Instance API: http://localhost:5000/elsa/api/workflow-definitions/9ac1f1c9792ffb14/execute

- program file: [Program.txt](https://github.com/user-attachments/files/16723754/Program.txt)

- flow:[flow.json](https://github.com/user-attachments/files/16723759/flow.json)

- Actual Situation: After starting the server and creating two workflow instances via the API, memory usage quickly rises to 1.1 GB. Even after the API call completes, the memory usage does not decrease. If workflows are continuously created, memory usage can even increase to over 10 GB.

![Snipaste_2024-08-23_13-15-05](https://github.com/user-attachments/assets/ce104d61-45e5-456e-a0c3-5ba895beb1b0)
![image](https://github.com/user-attachments/assets/8042a63a-ab08-43e6-8e9c-273330e2fd65)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.