-
Notifications
You must be signed in to change notification settings - Fork 311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data views slow down and freeze after receiving many events #2887
Comments
Redux store is certainly related here, but the main problem is rendering. After #2477 (comment) I removed the limit for the number events being rendered in the events view. Your solution looks fine, but indeed |
So after working on this for a bit, I think the solution here is threefold:
|
|
Unfortunately, this issue persists. Albeit, the event views can handle more load now but there's still a certain threshold of event count and frequency that will cause lag and freezes. I will reintroduce a maximum amount of events as a quick remedy until we can fine-tune this further. |
@kschiffer what's the status here? |
This one is tricky. Solving this properly is blocked on #3817. An intermediate fix is described here #2231 (comment) To add this, we need to be able to filter event streams on event types, which is one of the things that will be added by the Event Server TheThingsIndustries/lorawan-stack#1804. So either way there does not seem to be a quick remedy. The only other thing I can think of as preliminary fix is to automatically close the event stream and show an explanation message if it reaches a events/second threshold. |
So this needs to be removed from the current milestone, since it's not actionable right now as we need a decision on this first. |
is this still relevant? |
Yes, though the issue is not as immediate as it used to be due to our default event filtering and event count limit. Applications with a lot of chatty devices will still push the Console over a breaking point though. |
currently the data is robust, will re-open if anything comes up in the future |
Summary
The data views of the console freeze after receiving a lot of events.
Steps to Reproduce
What do you see now?
Freezing data views
What do you want to see instead?
Data views being stable regardless of the amount of events received
Environment
v3.5.8 and older
How do you propose to implement this?
The problem is likely caused by the redux store being filled considerably when the console is subscribed to an event source. Especially since the packet broker update, it will receive a lot of data per event which easily sucks up memory. My ideas to fix this are:
localStorage
instead of in the redux store. We could then only reference the event data in the redux store. This is assumption-based buy maybe thelocalStorage
can handle large amounts of data better.@bafonins what do you think?
How do you propose to test this?
Manual testing.
Can you do this yourself and submit a Pull Request?
Yes.
The text was updated successfully, but these errors were encountered: