There is a problem with the memory allocation by SeaScape that causes FireFox to crash on the online monitoring machine. Attached you can find an ELOG entry where the problem is explained (SeaScape-Memory.pdf). Is there a way to restrict the memory used for the caching of the queried data / plots?
#2 Updated by Markus Diefenthaler over 6 years ago
Update from Paul: This is the first time in a relatively long time that I've seen the monitor machine freeze, so the situation is much better. I know seascape was running, but I don't know about the event display.
#3 Updated by Markus Diefenthaler over 6 years ago
- Deferred jquery events are piling up: I think this is most likely the issue, because it seems that the memory leak doesn't occur consistently. It could be that a slow spike could cause the deferred objects to pile up as the are constantly being created every set interval (5 seconds I believe). I would include a statement to check how many of those objects exist. I would be able to clear out those object and reload the data. It's tricky, but I'm a little more familiar with ajax calls, and it would make sense that the page slows down if they're piling up.
- The objects created relating to making a graph are causing memory to leak because every time new data is loaded, a new graph has to be created. Maybe because the garbage collector is being tricked into thinking that since some elements relating to the graph are still being used, then it shouldn't release the memory. I would try to create a solution involving reusing the objects (something I think I'm able to tackle now after some more time working with seascape).
#4 Updated by Markus Diefenthaler over 6 years ago
Sylvester commented on the problem with the memory leak: "I just looked at the redmine history, and it seems to me like Mariusz has everything under control - I fully agree with his assessment. The one thing I would like to add is to keep in the back of your mind that the problem could lie with the browser itself (e.g., a memory leak in the garbage collector), even if everything in SeaScape is programmed perfectly according to JS specs. That possibility would of course make the fix more complicated."