Memory usage explodes when field contains many dates

Answered
eze@wejugo.com asked on July 11, 2022

Our team has found a potential memory leak or at least memory mismanagement in the component.
Our data is loaded through the Custom Data Source API. The field in question contains ~22,000 values which are dates corresponding to every day from 1970 to 2029. 
The /fields request advertises the field like so:

{
   "uniqueName": "Date",
   "type": "date"
},

The calls to /members returns 5 pages of up to 5,000 members each. As they load the memory usage starts to increase to about 2GB until the browser becomes sluggish and locks up with an error message (in the case of Chrome, see included screenshot).
What is telling is that if as a test we return type: "number" from the /fields call, then all the field's members are loaded and the memory usage barely changes.
We have been able to reproduce this on Chrome (103.0.5060.66) and Firefox (which tends to not actually lock up but manages to deal with the memory glut). 

1 answer

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster July 12, 2022

Hello,

Thank you for reaching out to us.

We couldn't reproduce the described issue on our side. Could you please provide us with more details:

  • Which version of Flexmonster do you use?
  • Is it possible for you to provide us with a sample project or temporary access to your environment where the described behavior is reproducible?

It would greatly help us.

Looking forward to hearing from you.

Kind regards,
Nadia

Please login or Register to Submit Answer