-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Web console: Severe performance problems viewing large log files #5474
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
Comments
Verify you have at least master in the last day - just to eliminate the potential for the CPU bug jordan fixed. |
How does a large log get chunked? One message per line? 20k messages would be a lot |
Possible leads for large list performance: http://tech.small-improvements.com/2013/09/10/angularjs-performance-with-large-lists/ |
Some thoughts at 2am... We knew we were going to hit some issues here, which is why we requested the api enhancements for partial log retrieval. Did any of those happen to get done early? Is there any way for us to do a preemptive HEAD request to know how big the log would be? For very large logs we could show a message like github does with large files/diffs and recommend using the cli... guessing our raw file download would still cause problems since it does things in memory |
Yeah, I did a clean build of the latest yesterday evening before seeing this. |
Yes, one message for each line. |
If I remove the |
So the only reason to have the lines broken out into individual divs, vs was to add the line numbers to the front |
If I use direct DOM manipulation instead of |
Not surprising, angular falls over after a certain number of data bindings On Thu, Oct 29, 2015 at 9:48 AM, Sam Padgett [email protected]
|
We can still add line numbers, although this is not very "Angular."
|
All of the things we discussed are in. limitBytes - total number of bytes returned in a chunk time + tail + limitBytes should work correctly. On Thu, Oct 29, 2015 at 2:31 AM, Jessica Forrester <[email protected]
|
I tried to load the log for my heapster pod, which is at least 20K+ lines. It took maybe 15 minutes, consumed 1GB of RAM, and pegged my CPU at over 100% when I finally stopped it. The only thing I've done in the browser tab since refreshing is view the log.

Looping `ng-repeat` over each log line is likely the problem. We're also passing each line to `filter : logSearch`, which I didn't think was used. Still working on profiling it.I also noticed that my Vagrant VM running OpenShift was using ~125% CPU.
/cc @jwforres @benjaminapetersen
The text was updated successfully, but these errors were encountered: