LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-02-2010, 11:57 AM   #1
pwabrahams
Member
 
Registered: Nov 2005
Location: Deerfield MA
Distribution: OpenSuSE, Kubuntu
Posts: 293

Rep: Reputation: 41
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?
 
Old 08-02-2010, 01:25 PM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
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.

Last edited by David the H.; 08-02-2010 at 01:26 PM.
 
1 members found this post helpful.
Old 08-02-2010, 03:33 PM   #3
pwabrahams
Member
 
Registered: Nov 2005
Location: Deerfield MA
Distribution: OpenSuSE, Kubuntu
Posts: 293

Original Poster
Rep: Reputation: 41
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.
 
1 members found this post helpful.
Old 08-03-2010, 01:00 AM   #4
nowshining
Member
 
Registered: Dec 2007
Distribution: Ibex
Posts: 93

Rep: Reputation: 15
Quote:
Originally Posted by pwabrahams View Post
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.
 
Old 08-03-2010, 05:28 AM   #5
kwill
Member
 
Registered: Jul 2007
Location: Horowhenua New Zealand
Distribution: (X)(K)ubuntu PCLinuxOS Mepis Puppy
Posts: 80

Rep: Reputation: 18
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.
 
Old 08-04-2010, 03:20 AM   #6
nxja
Member
 
Registered: Feb 2007
Location: Within The Universe, usually
Distribution: If I tell you, you will kill me.
Posts: 77

Rep: Reputation: 17
Quote:
Originally Posted by kwill View Post
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
 
Old 05-28-2016, 02:58 AM   #7
f.tuijn
LQ Newbie
 
Registered: Dec 2006
Posts: 9

Rep: Reputation: 0
Angry

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?
 
Old 05-31-2016, 07:53 PM   #8
kwill
Member
 
Registered: Jul 2007
Location: Horowhenua New Zealand
Distribution: (X)(K)ubuntu PCLinuxOS Mepis Puppy
Posts: 80

Rep: Reputation: 18
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
 
1 members found this post helpful.
Old 06-01-2016, 02:18 AM   #9
f.tuijn
LQ Newbie
 
Registered: Dec 2006
Posts: 9

Rep: Reputation: 0
Thank you.
 
Old 06-01-2016, 04:53 AM   #10
f.tuijn
LQ Newbie
 
Registered: Dec 2006
Posts: 9

Rep: Reputation: 0
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.
 
Old 06-08-2016, 02:14 AM   #11
f.tuijn
LQ Newbie
 
Registered: Dec 2006
Posts: 9

Rep: Reputation: 0
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.
 
Old 06-25-2016, 05:53 AM   #12
f.tuijn
LQ Newbie
 
Registered: Dec 2006
Posts: 9

Rep: Reputation: 0
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.
 
Old 06-26-2016, 09:30 PM   #13
kwill
Member
 
Registered: Jul 2007
Location: Horowhenua New Zealand
Distribution: (X)(K)ubuntu PCLinuxOS Mepis Puppy
Posts: 80

Rep: Reputation: 18
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.
 
Old 06-28-2016, 07:54 PM   #14
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Quote:
Originally Posted by kwill View Post
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
 
  


Reply

Tags
firefox



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Mutter Can Cause A Gaming/OpenGL Performance Hit Too LXer Syndicated Linux News 0 06-21-2010 06:00 PM
LXer: KWin Can Cause A Performance Hit Too LXer Syndicated Linux News 0 05-24-2010 02:10 AM
PAE Performance Hit Woodsman Slackware 9 05-07-2009 03:58 AM
Any methods to reduce the performance hit of using Tor? dr_zayus69 Linux - Networking 1 10-28-2006 06:04 AM
BIG gaming performance HIT!? 4x AGP... RHLinuxGUY Linux - Games 1 12-02-2003 10:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration