Menu

#1571 Used memory by STAX never decreases

All
open
nobody
None
5
2018-03-07
2016-02-18
No

STAX doesn't free the memory after the jobs are finished.
We executed some tests using simple and looping STAX script which starts the staf command "staf local delay delay 20s". More details you will find in the following:

Description | Import | Loop | Result

===========================================================================
Simple STAX script | No | No | Memory usage cap: 600 MB - All tests finished: 400 MB
Looping STAX Script | No | Yes | Memory usage cap: 925 MB - All tests finished: 830 MB

Script only started a staf command ("staf local delay delay 20s")
Started ~500 jobs for each test after STAF restart.
Memory usage at start ~80 MB

Looping = Infinite loop

- Stopped with "TERMINATE" request once all tests are started (staf local stax terminate job <id>)

I need that STAX free the memory because if you have a lot of jobs the memory of the system increase to much and never decrease and finally the system will crash.

Discussion

  • Laura Irimia

    Laura Irimia - 2016-03-23

    Hello, Can you please give me a state about this ticket?

     
  • Sharon Lucas

    Sharon Lucas - 2016-03-28

    I haven't been able to find a memory leak in STAX for the issue you described.

    We don't have any real control over Java's garbage collector, so Java may not decide to garbage collect for a long time, leaving you with a lot of memory in use.

     
  • Bianca Calota

    Bianca Calota - 2018-03-07

    Hello,

    Could you please inform me if there is any new information/state of this ticket?

    Thank you in advance!

     

Log in to post a comment.

MongoDB Logo MongoDB