You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, we r using this table to provide "real-time" status for the chargers.
Data is presented in a tree-like way.
We have a dummy pulling every 1sec to bring the new state.
We have some customization for the table.
To bring some performance we did:
Stop pulling while the tab is "blurred"
Some kind of semaphore, to wait and not to DDoS server.
So the problem is - once u leave(go to another one) the tab and back after ~1,5-2h - the CPU load jumps to 100%, memory to the maximum ~4Gb, and JS event listeners to the ~40000 and the app is crashed (obviously).
The main problem - we cannot really debug it, cannot do the profiling etc...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, we r using this table to provide "real-time" status for the chargers.
Data is presented in a tree-like way.
We have a dummy pulling every 1sec to bring the new state.
We have some customization for the table.
To bring some performance we did:
So the problem is - once u leave(go to another one) the tab and back after ~1,5-2h - the CPU load jumps to 100%, memory to the maximum ~4Gb, and JS event listeners to the ~40000 and the app is crashed (obviously).
The main problem - we cannot really debug it, cannot do the profiling etc...
The part of the code itself:
Will be glad to any advise.
Thnx
Beta Was this translation helpful? Give feedback.
All reactions