File Manager memory usage
Hi,
I've noticed this issue in the example project sent to me by Syncfusion as part of thread 185799. As the mouse is moved around the displayed files and folders, a stream of mouseenter, mousemove and mouseout messages, plus numerous render messages, are sent.
Video attached.
Each message appears to increase the memory used by the server.
Continuously moving the mouse within the bounds of one folder icon for one minute sent around 10,000 messages and increased server memory usage by 200MB.
Is this expected behavior?
Regards,
Steve
Attachment: Recording_20231217_222605_3bc53283.zip
Hi Stephen,
Greetings from Syncfusion support.
Based on the shared details, we are able to replicate 'the mouse is moved around the displayed files and folders, a stream of mouseenter, mousemove, and mouseout messages, plus numerous render messages, are sent' in the Blazor FileManager.
When you hover over files and folders in the FileManager component, Tooltips will appear, and they will not be displayed when not hovered over the folder and file.
The Microsoft.AspNetCore.SignalR prints the details you mentioned in the output window because the Blazor Tooltip component captures client mouseenter, mousemove, and mouseout events. This is currently the default behavior of the Blazor FileManager component.
Check out the shared details and let us know if you need any further assistance.
Regards,
Prasanth Madhaiyan.
Hi Prasanth,
Thank you for the quick response.
I do understand that the generation of the mouseenter, mousemove and mouseout events are default behaviour.
However, the issues are:
- The messages cause the server memory to increase and it does not appear to come back down. Is this a memory leak in the Syncfusion server-side code? Please could you investigate if there is a memory leak?
- Are the mousemove events really needed? They are the ones that generate by far the largest number of messages. I think tooltips only require mouseenter and mouseout? Please could you invesigate whether the number of messages can be reduced? Can the mousemove events be disabled?
Hi Stephen,
We have checked the reported issue in the Blazor FileManager component and considered it a bug at our end. The fix for this issue will be included in the weekly patch release scheduled for January 9, 2024. You can track the status of the fix through the following link.
Disclaimer: Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.
Regards,
Prasanth Madhaiyan.
Hi Stephen,
Thanks for your patience.
We are glad to announce that our patch release (V24.1.46) has been rolled out successfully. The issue with “Facing a memory usage issue in the Blazor FileManager while continuously moving the mouse within one folder icon” has been resolved in this release.
To access this fix, we suggest you update the package to 24.1.46 and we include the sample in the latest version for your reference.
Sample: Attached as a zip file.
Release notes: https://blazor.syncfusion.com/documentation/release-notes/24.1.46?type=all#file-manager
Regards,
Prasanth Madhaiyan.
Attachment: Sample_2234a74.zip
- 4 Replies
- 2 Participants
-
SH Stephen Haines
- Dec 17, 2023 10:54 PM UTC
- Jan 18, 2024 07:23 AM UTC