Log Viewer: Improve performance
Describe the bug We have identified 2 issues here:
-
[ ] When you perform a massive copy/publish content operation (copy/publish multiple pieces of content), with the popup log opened, the browser eventually crashes

-
[ ] The popup stops tailing log after leaving it open for a while. I noticed it after 3 ~ 4 hours.
Expected behavior The log viewer should display what the catalina.out contains and it shouldn't crash using or not a filter criteria.
Notes from Review meeting:
- The new fix will provide a brand new Server side based on events
- The events will still be written into the iFrame
- The iFRame will still serve as the log-view data source
- The Div that shows the lines will only hold a certain number of "pages" or groups of logs if you will
- Upon the arrival of new pages, a certain percentage of the old pages will be dropped
- The Highlight will be executed on the pages shown on the div view. Never on the whole log to speed up performance
- The number of logs loaded on the iframe can be limited so prior entries will be dropped depending on a param
Here's the branch that provides the POC for partitioning the log using "page" class https://github.com/dotCMS/core/tree/improve-tail-log
Please add your planning poker estimate with Zenhub @fabrizzio-dotCMS
Dupe #22968