News for hackers. Stuff that matters.
Re:Firefox, Heal Thyself by acjohnson55 on Tuesday May 14, 2013 @02:11PM (#5706816)
I'm not sure if this applies, but I really hope they provide better tools to identify badly behaving webpages. Sometimes when my CPU or memory are being cranked by Firefox, I really just want to kill the one tab out of 50 that's causing all the problems.
Re:Firefox, Heal Thyself by jlgreco on Tuesday May 14, 2013 @03:49PM (#5707566)
It would be great if they could roll such a feature into a convenient UI. Just a magic "Firefox, whatever you are doing.. knock it off" button would be great. It could look at system memory usage and CPU usage, determine if either is high enough that it might cause user distress, and kill whatever tabs are the most likely offenders.
Re:Firefox, Heal Thyself by BrianEatWorld on Tuesday May 14, 2013 @05:33PM (#5708401)
I like this idea. A bit like the pause buttons on my VMs.

I have this type of issue more with Chrome than Firefox though and it always seems to be related to leaving a tab open with a video for a long time, even if it isn't being played.

Re:Firefox, Heal Thyself by progrock on Wednesday May 15, 2013 @01:44AM (#5710376)
At least with Chrome there is the built in Task Manager.
Re:Firefox, Heal Thyself by ianox on Wednesday May 15, 2013 @04:51AM (#5710862)
> At least with Chrome there is the built in Task Manager.

And the about:memory page, which shows you memory usage of all your extensions too.

Re:Firefox, Heal Thyself by bad_user on Wednesday May 15, 2013 @02:31AM (#5710507)
I'd love for Firefox to have a task manager like that.
Re:Firefox, Heal Thyself by DEinspanjer on Tuesday May 14, 2013 @03:54PM (#5707591)
That isn't currently a target area for FHR. Things pertaining to the performance of particular webpages and such are extremely difficult to tease out of the data in a meaningful way. Not to say we will never include something like that in FHR, just not in the first couple of revisions of it.

Have you tried out the about:memory page? It doesn't do CPU, but it is a good way to see what particular pages are hogging memory.

Re:Firefox, Heal Thyself by piyush_soni on Tuesday May 14, 2013 @05:37PM (#5708431)
Is it that Chrome is able to do it just because it's a separate process per tab? (It shows memory consumption by each page.) I try to go to the about:memory page every once in a while, but first that doesn't show information in a very intuitive way, and second, NONE OF the 'GC', 'CC', or the 'Minimize Memory Usage' buttons seem to reduce Firefox's memory usage. Sometimes pressing these buttons actually increases the RAM usage (as seen from the Task Manager on Windows) - which is beyond my understanding. The only way to reclaim the 2 GB of my system RAM firefox has captured is to restart it.
Re:Firefox, Heal Thyself by mccr8 on Tuesday May 14, 2013 @06:07PM (#5708677)
The garbage collector and cycle collector are run all the time normally, so clicking on those buttons shouldn't have too much effect on memory when you are using the browser normally. They are mostly useful for getting to a settled memory state right after opening a page rather than having to wait a few minutes for it to naturally happen, or in the rare cases where a GC should be triggered but isn't.

As for why running the GC might increase RAM usage, I guess it is possible that some memory had been paged out, but running the GC causes the browser to touch all memory, paging it back in. That's just a guess though.

Re:Firefox, Heal Thyself by jlgreco on Tuesday May 14, 2013 @05:36PM (#5708422)
> Things pertaining to the performance of particular webpages and such are extremely difficult to tease out of the data in a meaningful way.

It seems to me that you could do this "well enough" if you put each page in its own process and let the OS tell you which are burning the CPU. There could/would be edge-cases where a page causing issues would not appear like it was causing issues, looking at it from that level, but it would sure as hell be a good start.

Re:Firefox, Heal Thyself by acjohnson55 on Wednesday May 15, 2013 @03:17AM (#5710633)
I hadn't tried it before. It's interesting and I can see it being helpful in some cases, but it's not immediately easy to parse. I'll probably have to spend some more time with it.
Re:Firefox, Heal Thyself by cm3 on Tuesday May 14, 2013 @04:24PM (#5707800)
That would be nice, but I believe Firefox, Opera and Chrome already detect unresponsive tabs and offer closing such a tab and freeze it until you make a decision. Opera has both opera:cpu and opera:memdebug.
Re:Firefox, Heal Thyself by guojh0570 on Monday May 20, 2013 @07:39AM (#5737053)
And in fact, after I updated my Firefox to 21.0, it seems that it took more memory than before. I run it on Mac OSX 10.8.3