View Issue Details

IDProjectCategoryView StatusLast Update
0014737MMW 5Syncpublic2020-11-09 10:01
ReporterLudek Assigned To 
PriorityimmediateSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version5.0 
Target Version5.0Fixed in Version5.0 
Summary0014737: Memory utilization grows during sync (regression)
DescriptionWhen uploading files from MM5 to MMS then memory utilization grows constantly.
TagsNo tags attached.
Fixed in build2097

Activities

Ludek

2018-04-13 12:22

developer   ~0049948

Last edited: 2018-04-13 13:23

Tech note for devs:

It is because of CEF's garbage collector, the IFileBuffer is shared object and it is garbaged after 30 seconds.
i.e. memory can grow during uploading, but once uploading finishes then after 30 seconds it is garbaged and memory goes to normal.

Calling CefCollectGarbage manually before allocating the buffer no longer works to force the garbaging.

Partial workaround is to adjust IFileBuffer so that it reads the data buffer from the source file path on demand (and frees immediately).

Ludek

2018-04-13 13:36

developer   ~0049949

Last edited: 2018-04-13 13:36

Adjusted in 2097, but for the full memory flush it is still needed to wait 30 seconds for the garbage collector to collect.

peke

2020-11-09 10:01

developer   ~0060096

Verified 2273

Memory utilization goes back to normal once copy is done.