# Forms Memory Leak

**URL:** <https://forum.camunda.io/t/forms-memory-leak/3243>\
**Category:** Discussion & Questions\
**Tags:** cockpit, admin\
**Created:** [March 31, 2017, 7:29am UTC](https://forum.camunda.io/t/forms-memory-leak/3243 "2017-03-31T07:29:59Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![horiavmuntean](https://forum.camunda.io/user_avatar/forum.camunda.io/horiavmuntean/32/21947_2.png) [@horiavmuntean](https://forum.camunda.io/u/horiavmuntean)\
**Post date:** [March 31, 2017, 7:29am UTC](https://forum.camunda.io/t/forms-memory-leak/3243/1 "2017-03-31T07:29:59Z")

</div>

Hi,

I am experiencing what seems to be a memory leak in a form deployed on the tasklist app (Camunda 7.5.0). If I let the browser opened overnight with the form selected the memory consumption of that particular tab grows from 40MB at first to 2GB (as reported on FF by the Tab Memory Usage plugin). Upon F5 the memory turns back to normal.

The leaking form is not that complicated or large but it uses some angular services like ‘$http’, ‘moment’, ‘Uri’, ‘Notifications’. On very simple forms I don’t see the leaking behavior.

I was wondering if somebody else has seen this happening and if there is any advice about tackling this problem.

BR

---

<div class="post-metadata">

**Author:** ![sebastian.stamm](https://forum.camunda.io/user_avatar/forum.camunda.io/sebastian.stamm/32/31_2.png) [@sebastian.stamm](https://forum.camunda.io/u/sebastian.stamm)\
**Post date:** [March 31, 2017, 1:02pm UTC](https://forum.camunda.io/t/forms-memory-leak/3243/2 "2017-03-31T13:02:28Z")

</div>

Hi,

that’s hard to analyse without knowing more about your setting. Could you maybe share your form? Also, do you know whether any request were performed during the night (like the auto-refresh feature of the filter)?

Cheers  
Sebastian

---

<div class="post-metadata">

**Author:** ![horiavmuntean](https://forum.camunda.io/user_avatar/forum.camunda.io/horiavmuntean/32/21947_2.png) [@horiavmuntean](https://forum.camunda.io/u/horiavmuntean)\
**Post date:** [April 12, 2017, 7:08am UTC](https://forum.camunda.io/t/forms-memory-leak/3243/3 "2017-04-12T07:08:05Z")

</div>

Hi,

I agree is difficult to say anything without the form itself. But upon further investigation I noticed the leak happens even without any form loaded into the right panel. Here is a screenshots:

- the tasklist app (see the right upper corner for memory consumption)

 ![](https://forum.camunda.io/uploads/default/original/2X/7/7dec2ce3342b0b57393e6dab35986cf5048fc3a2.png)

- the group tasks filter is selected and has auto-refresh on (the number of items in the middle panel is small - 6 tasks) so [https://xxxxx/api/engine/engine/default/filter/9c591cf6-a765-11e6-bf14-02215eca2a43/list?firstResult=0&maxResults=15](https://xxxxx/api/engine/engine/default/filter/9c591cf6-a765-11e6-bf14-02215eca2a43/list?firstResult=0&maxResults=15) is called every 10 seconds or so

By the way I upgraded to 7.6.0 in the meantime.

If I do a page refresh (F5) the memory comes back to normal (~38 MB).

Any ideeas ?

Thanks

---

<div class="post-metadata">

**Author:** ![sebastian.stamm](https://forum.camunda.io/user_avatar/forum.camunda.io/sebastian.stamm/32/31_2.png) [@sebastian.stamm](https://forum.camunda.io/u/sebastian.stamm)\
**Post date:** [April 12, 2017, 9:10am UTC](https://forum.camunda.io/t/forms-memory-leak/3243/4 "2017-04-12T09:10:23Z")

</div>

My guess would be that the auto-refresh feature is the reason for this. Perhaps the data it fetches is not cleaned up. That could be caused by the browser itself, the angular framework or the Tasklist.

You could try turning auto-refresh off and see if memory consumption still increases over time.

---

<div class="post-metadata">

**Author:** ![horiavmuntean](https://forum.camunda.io/user_avatar/forum.camunda.io/horiavmuntean/32/21947_2.png) [@horiavmuntean](https://forum.camunda.io/u/horiavmuntean)\
**Post date:** [April 24, 2017, 6:51am UTC](https://forum.camunda.io/t/forms-memory-leak/3243/5 "2017-04-24T06:51:50Z")

</div>

I disabled auto-refresh and it’s fine now. Does this - the fact that auto-refresh has a memory leak - count as a bug ? Is there any place where I can fill in this ?

---

<div class="post-metadata">

**Author:** ![sebastian.stamm](https://forum.camunda.io/user_avatar/forum.camunda.io/sebastian.stamm/32/31_2.png) [@sebastian.stamm](https://forum.camunda.io/u/sebastian.stamm)\
**Post date:** [April 24, 2017, 7:00am UTC](https://forum.camunda.io/t/forms-memory-leak/3243/6 "2017-04-24T07:00:41Z")

</div>

You can create a bug report in the [Camunda JIRA](https://app.camunda.com/jira). I’d say a memory leak would count as a bug 😉 Question is whether it’s a bug in the Tasklist or in the browser - or the browsers development tools. Nevertheless, creating an issue in the Camunda tracker is the right way to go.

Thanks for investigating 🙂

---

<div class="post-metadata">

**Author:** ![horiavmuntean](https://forum.camunda.io/user_avatar/forum.camunda.io/horiavmuntean/32/21947_2.png) [@horiavmuntean](https://forum.camunda.io/u/horiavmuntean)\
**Post date:** [April 26, 2017, 7:11am UTC](https://forum.camunda.io/t/forms-memory-leak/3243/7 "2017-04-26T07:11:22Z")

</div>

[https://app.camunda.com/jira/browse/CAM-7679](https://app.camunda.com/jira/browse/CAM-7679)

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://forum.camunda.io/uploads/default/original/3X/5/8/58d50142eacca605d35cb1ef9e6b86ae85f49436.png) [@system](https://forum.camunda.io/u/system)\
**Post date:** [January 30, 2024, 10:50am UTC](https://forum.camunda.io/t/forms-memory-leak/3243/8 "2024-01-30T10:50:10Z")

</div>

Closed on January 30, 2024, 10:50am UTC


