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

High memory consumption after upgrade to 20.3.0.59 - Branched from 179329

I am seeing memory consumption skyrocket after upgrading from 20.3.0. .47 to 20.3.0.59.

When the dataset is large and filtering of the dropdowns occurs, it may take a few seconds to render them. Changing the dropdown or datepickers triggers a rerender of the data in the dropdowns. If i interact with the dropdowns or datepickers during the render period, the app can get into a state where memory in the w3wp IIS process grows indefinitely until it consumes all the available memory on the server.




<EditForm Model="@ReportRequest" OnValidSubmit="@GenerateReportAsync">

<SfDatePicker TValue="DateTime?" @bind-Value='@EndDate' Min='@EndMinDate' Max='@MaxDate'>

<DatePickerEvents TValue="DateTime?" ValueChange="ReloadDropdownsAsync"></DatePickerEvents>

</SfDatePicker>

<SfMultiSelect Width="500" Mode="VisualMode.CheckBox" TValue="int[]" TItem="SenderDomainModel" DataSource="@SenderDomainList"

   @bind-Value="SelectedSenderDomainIds" AllowFiltering="true" ShowClearButton="false" ShowSelectAll=true SelectAllText="Select All" UnSelectAllText="Unselect All">

<MultiSelectEvents TItem="SenderDomainModel" TValue="int[]" ValueChange="ReloadDropdownsAsync" />

<MultiSelectFieldSettings Text="SenderDomain" Value="SenderDomainId"></MultiSelectFieldSettings>

<MultiSelectTemplates TItem="SenderDomainModel">

<ItemTemplate Context="SenderDomainContext">

@{

SenderDomainModel sd = SenderDomainContext as SenderDomainModel;

}

<span>

<span>@sd.SenderDomain</span>

</span>

</ItemTemplate>

</MultiSelectTemplates>

</SfMultiSelect>

</EditForm>









5 Replies

SP Sureshkumar P Syncfusion Team December 15, 2022 05:32 AM UTC

Hi Hakop,

When loading the large data to the component you can use the virtualization feature to resolve the memory conception issue.

To know more about the virtualization feature, refer to the below online demo and documentation below.

Online demo link: https://blazor.syncfusion.com/demos/multiselect-dropdown/virtualization?theme=fluent

Documentation link: https://blazor.syncfusion.com/documentation/multiselect-dropdown/virtualization

Regards,

Sureshkumar P



HB Hakop Balyan December 17, 2022 12:11 AM UTC

Sorry but I dont see how this would stop the memory consumption, the data i am rendering is not that much, maybe 50 rows.  It is filtered before rendering.



SP Sureshkumar P Syncfusion Team December 19, 2022 11:11 AM UTC

Hakop, our component does not replicate the performance problem when the 50 data are bound to the multiselect component. Additionally, the component data source loading time may affect performance when loading huge amounts of data, so we only offer the virtualization feature to address that performance loss. To validate that the performance issue is being caused by our multiselect component, check the performance issue with the multiselect component once more by commenting and uncommenting the component rendering code in your application. We'll validate and update the precise answer as soon as we can be based on your update.



HB Hakop Balyan December 19, 2022 04:24 PM UTC

I will try this, but rolling back to the prior version has already shown not to have the mem leak.  I think it has to do with the user interaction with the form before the render is complete.  I may have to spend more time to create a sample app to recreate this problem so you can see.



YS Yohapuja Selvakumaran Syncfusion Team March 4, 2024 03:33 PM UTC

Hi Hakop Balyan,


Thank you for reaching out to us and bringing this matter to our attention. We apologize for any inconvenience caused by the delay in our response.


To address your concern regarding the performance issue with the multiselect component, we have created a sample with 50 items for you to review. Please find the sample at the following link:


Sample: https://blazorplayground.syncfusion.com/BZBfZgjpeSBeusCh


We kindly ask you to test this sample and let us know if you encounter the same performance issue in the latest version as well. Your feedback is valuable to us as we continuously strive to improve our products and services to meet your needs.


Thank you for your patience and understanding. We look forward to hearing from you soon.



Regards,

Yohapuja S


Loader.
Up arrow icon