We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Chart memory leak

Hello,
attached is a sample xamarin android project you provided me several months ago. It is real time plot example, it plots 180 samples in the chart. Old samples are removed from data collection.

The app starts with normal memory usage:

04-12 01:07:02.757 D/Mono    (20765): GC_MINOR: (Nursery full) time 40.53ms, stw 41.88ms promoted 2204K major size: 3168K in use: 2440K los size: 1024K in use: 216K

However, after several minutes of run, the memory usage is very high and is continuously increasing.

04-12 01:09:34.002 D/Mono    (20765): GC_MAJOR: (LOS overflow) time 49.11ms, stw 49.50ms los size: 1024K in use: 507K
04-12 01:09:34.002 D/Mono    (20765): GC_MAJOR_SWEEP: major size: 16256K in use: 15183K

Is there memory leak issue in your charts? Or how to make the app consume constant amount of memory (as old samples are removed from chart)?

Attachment: DataMarkerSample264781638_leak_8ed63b7e.zip

3 Replies

MD Martin Dusek April 17, 2017 07:57 PM UTC

Can someone please reply?


SP Saravana Pandian Murugan Syncfusion Team April 19, 2017 04:01 AM UTC

Hi Martin,

Thanks for using Syncfusion products.

Currently we are checking the memory issue from our side. We are trying to optimise it in the sample level and we will update you with more details on April 19, 2017.

Regards,
Saravana Pandian M.



SP Saravana Pandian Murugan Syncfusion Team April 19, 2017 07:03 PM UTC

Hi Martin,

Thanks for your patience.

We have optimized the memory usage in the sample by avoiding object creations and attached for your reference. We are still analysing on the further possibilities of reducing the memory consumption as much as possible.

Sample: http://www.syncfusion.com/downloads/support/forum/129961/ze/DataMarkerSample-1824766241

Please check the attached sample and let us know if you have any concerns.

Regards,
Saravana Pandian M.


Loader.
Live Chat Icon For mobile
Up arrow icon