question

A Kamphaus avatar image
1 Like"
A Kamphaus asked Phil BoBo answered

Chart Templates taking a large portion of memory

I recently updated my model from 20.0.4 to 20.1. This made a huge difference in the run time of my model which seems to be due to the charts collecting data in a more efficient way.

Then over the last couple weeks I started to notice the model would take longer and longer to save and reset. The size of the model went from 8,000 K to 30,000 K and the memory usage when running quadrupled. I have been editing the model, mostly adding some things in process flow, but the main jump seemed to correspond to when I added 4 queues, one operator and one piece of conveyor in the 3D part of the model. This seems mostly coincidental.

Using the memory profiler I see the most recent model seems to have a huge chunk of memory taken up by ChartTemplates even after a reset (see picture). I have not edited, added or done anything else to my stats collection or charts since the update so I'm failing to understand why this is happening now.

Can anyone tell me how to clear this portion of the memory? Or has anyone else had this happen?

FlexSim 20.1.0
statistics collectorflexsim 20.1.0chart templatesmemory space
· 5
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

A Kamphaus avatar image A Kamphaus commented ·

I tried deleting all charts from my dashboards and this memory level didn't go down.


0 Likes 0 ·
flexsim-memory-2.png (310.5 KiB)
Braydn T avatar image Braydn T A Kamphaus commented ·

@Jordan Johnson Do you have any idea what could be causing this?

0 Likes 0 ·
A Kamphaus avatar image A Kamphaus commented ·

So to update, I deleted all dashboards from my model and have started rebuilding all my charts. There are only about half added back in. When running to test it out I see the memory creeping back up again a few MB every run.

0 Likes 0 ·
A Kamphaus avatar image A Kamphaus commented ·

This seems to be happening when I save the model. The first picture is before I saved, the second picture is after I reset and saved the model.


Before save:

After save:

0 Likes 0 ·
beforesave.png (319.2 KiB)
aftersave.png (317.5 KiB)
A Kamphaus avatar image A Kamphaus A Kamphaus commented ·

It looks like only the charts with the "coreCollector" are the ones stealing memory. When I delete it from the tree the size goes down but starts building up again when I save.


Is there anything to be done about this or am I going to have to plan on doing all my charts in Excel?

0 Likes 0 ·

1 Answer

·
Phil BoBo avatar image
2 Likes"
Phil BoBo answered

This should be fixed in 20.1.1. Try updating your software.

FlexSim 20.1.1

  • Fixed chart templates increasing memory usage after saving the model.

https://docs.flexsim.com/en/20.1/Reference/ReleaseNotesAndHistory/

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.