LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Performance hit from plugin-container in Firefox (https://www.linuxquestions.org/questions/linux-software-2/performance-hit-from-plugin-container-in-firefox-823597/)

pwabrahams 08-02-2010 11:57 AM

Performance hit from plugin-container in Firefox
 
I was wondering why my laptop was running so slowly, and so I called top to find out where the resources were going. I found a process called plugin-container that appeared to be the culprit. So I did a googlesearch on that subject and found that plugin-container was introduced in Firefox 3.6.4 for the purpose of preventing plugin misbehavior from crashing the entire browser.

There's quite a lot of net-talk about plugin-container, but most of it pertains to the Windows environment. I tried the suggested fix (Linux version):
Type about:config in the URL bar.
Do a search on dom.ipc.plugins.
Set the properties for libflashplayer.so and libnptest.so to false.
It does seem to have helped with the performance problem, and plugin-container no longer has top billing in top.

However, plugin-container was introduced to solve a problem, so I suppose that this fix changes the status of that problem to "unsolved". For that reason I'm uneasy about this solution.

Does anyone have insight into this issue?

David the H. 08-02-2010 01:25 PM

I don't like the idea of disabling it either. The new container system is designed to separate out badly-performing plugins so you don't get crashes all the time. Disabling the container just puts you back to the unstable system that existed before.

I'm going to guess you've probably seen this page about it already.

http://kb.mozillazine.org/Plugin-con...rocess_plugins

I sometimes get similar problems to you, but I've always blamed it on flashplayer itself, as I've had them even before the plugin-container was implemented. When I get a chance though I'll try to disable it and see if that helps. But I'm sure that over time any performance problems (with the container system at least) will get worked out.

One nice thing about the container though is that you can kill that process and it won't affect firefox itself. If it starts acting up, simply "pkill plugin-cont" and it should go away. Then you can reload the original page and it should re-spawn.

pwabrahams 08-02-2010 03:33 PM

Pros and cons
 
Yes, plugin-container does something useful, but at a very high cost in system load. Assuming you haven't disabled plugin-container, just try running top in a shell window to see how much of the machine resources it's grabbing.

I hope that the Mozilla folks figure out a way to get the benefit at a more modest cost. Until they do, I'll take my chances with browser crashes and hangs on Flash pages.

nowshining 08-03-2010 01:00 AM

Quote:

Originally Posted by pwabrahams (Post 4052828)
I was wondering why my laptop was running so slowly, and so I called top to find out where the resources were going. I found a process called plugin-container that appeared to be the culprit. So I did a googlesearch on that subject and found that plugin-container was introduced in Firefox 3.6.4 for the purpose of preventing plugin misbehavior from crashing the entire browser.

There's quite a lot of net-talk about plugin-container, but most of it pertains to the Windows environment. I tried the suggested fix (Linux version):
Type about:config in the URL bar.
Do a search on dom.ipc.plugins.
Set the properties for libflashplayer.so and libnptest.so to false.
It does seem to have helped with the performance problem, and plugin-container no longer has top billing in top.

However, plugin-container was introduced to solve a problem, so I suppose that this fix changes the status of that problem to "unsolved". For that reason I'm uneasy about this solution.

Does anyone have insight into this issue?

Thanks for the about:config fix. :) - was wondering how to turn it off as I had more probs when this was intro and added than I had before with crashes on flash items/etc.

kwill 08-03-2010 05:28 AM

The same problem occurs with Opera and Linux. In fact often several plugin-containers are running. They also take a trmendous amout of cPU usage. I am forever killinh them but some times they don't seem to want to die.

nxja 08-04-2010 03:20 AM

Quote:

Originally Posted by kwill (Post 4053723)
The same problem occurs with Opera and Linux. In fact often several plugin-containers are running. They also take a trmendous amout of cPU usage. I am forever killinh them but some times they don't seem to want to die.

perhaps run with flash off? opera has one of those drag custom buttons, that ends up in Ini.
in ff, i use quickjava extension, which now has (dis|en)able buttons for js, java, silverlight (i assume win-only), css, and img. disclaimer: i have not verified the effect upon plugins-container.exe (the exe for ff on win)
looks like current vesion 1.7.2 is not causing trouble:
http://www.google.com/search?q=site:...=100&as_qdr=m8
http://www.google.com/search?q=site%...ugin-container

f.tuijn 05-28-2016 02:58 AM

All these posts are from six years ago. I have been running Linux Mint 17.2 now for several months and over the last month this problem has reappeared and is getting worse. What is happening?

kwill 05-31-2016 07:53 PM

Hi,

Sorry for late reply.

I don't know that the problem ever went away completely. I have regularly been killing the process.

I have noticed over last few months that no browser* seems to clean up closed tabs. They just keep using more and more memory until even swap is full. System then is slower than a snail as it spends all its time moving stuff into/out off swap. Needs the browser closed and restarted to clean up the memory.

Opera 12 was about the best but Opera now is rebadged Firefox

Firefox, Opera, Vivaldi

f.tuijn 06-01-2016 02:18 AM

Thank you.

f.tuijn 06-01-2016 04:53 AM

I now maintain two terminals, one runs top, the other with kill -15 [PID plugin-container] and this one always on top. When trouble comes, firefox freezes, I use the kill -15 and the radio I listen to continues without any interruption.

f.tuijn 06-08-2016 02:14 AM

Further "research" shows me that plug-in container is allergic to BBC Radio 4 and sound from the BBC News website. Trouble might ensue within minutes if I start BBC Radio 4 immediately after starting Firefox but can take a few hours if I go there later. I seldom look at other BBC sites. So I will now reduce my use of these sites sharply.

f.tuijn 06-25-2016 05:53 AM

Some last remarks:
The recent Linux Mint update seems to have little improvement.
If I delay starting BBC Radio 4 for about a quarter of an hour after starting Firefox I get no or very little trouble.
Starting the Dutch broadcaster www.BNR.nl immediately doesn't give any trouble.

kwill 06-26-2016 09:30 PM

I have been trialing Vivaldi, an independent successor to Opera.

It doesn't seem to use Plugin-container but just like the other browsers it doesn't free memory after shutting a tab. So you are soon out of memory and then swap. It does have the "save session" like Opera used to so that saving a window and then closing the window claims back the memory. You can then get the window back with the tabs.

BCarey 06-28-2016 07:54 PM

Quote:

Originally Posted by kwill (Post 5566739)
I have noticed over last few months that no browser* seems to clean up closed tabs. They just keep using more and more memory until even swap is full. System then is slower than a snail as it spends all its time moving stuff into/out off swap. Needs the browser closed and restarted to clean up the memory.

Firefox by default caches pages that you have visited (8 per tab). To change this behavior go into about:config and change the Browser.sessionhistory.max_total_viewers to a low number, like 0 or 1. It made a big difference for me.

Brian


All times are GMT -5. The time now is 09:22 AM.