Open Bug 1162698 Opened 7 years ago Updated 2 years ago
Thumbnail generation should have a time limit
The thumbnail service seems to cause high CPU usage and high memory when trying to get a screenshot of a page that has a long load time. The latest x64 nightly maxed out at 4.6 GB for me with only the about:newtab page open. Once the browser obtains the thumbnail, high CPU usage and high memory usage no longer occur. I have also attached a report from about:memory when this occurs. I did notice that the child process has about 930 MB in heap-unclassified, which seems really bad. ** Warning ** - The page in question is a PHP script that contains an infinite loop that just prints "Inifinite Loops! \o/". STR: 1) Create a new profile. 2) Load  so that it gets put as a tile on about:newtab. 3) Close the browser and reopen it. 4) Open a new tab or browse to about:newtab.  http://trowbotham.com/bug_tests/iloop.php Actual Results: For me, plugin-container consumes 15% CPU usage and memory usage quickly skyrockets. Expected Results: Normal resource usage when the browser is trying to obtain a thumbnail.
Forgot to mention that I am on Windows 7.
As master in these cases can you look on this issue?
Sorry, my next two weeks look rather busy due to a lot of traveling. Might not be able to look into it anytime soon.
7 years ago
Status: UNCONFIRMED → NEW
Ever confirmed: true
Component: General → Activity Streams: Newtab
Product: Core → Firefox
Summary: Memory leak in thumbnail service on pages that take a long time to load → Thumbnail generation should have a time limit
Whiteboard: [MemShrink] → [MemShrink:p2][qf:p2:responsiveness]
Component: Activity Streams: Newtab → New Tab Page
You need to log in before you can comment on or make changes to this bug.