f940
![]() |
|
|
|
|
|||||||
| Multimedia Having problems running your new shiny and blinking gadget or watching DVDs, listening to CDs etc.? |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I'm having a problem with flash leaving behind npviewer.bin 'things'... It tends to slow down my browsing and increases my memory usage.
I need to know why it isn't cleaned up after the web page dies and how I can modify my browser, Firefox 3.5.10, to automatically kill them... ps -ax shows many occurances of npviewer.bin . And, um, I don't like that. Even though a killall npviewer.bin works to get rid of them and thus improves my surfing speed I'd like to know how to rid myself of this little problem permanently. Anyone ? |
|
#2
|
||||
|
||||
|
I don't think there's a fix for that. Flash is simply buggy on FreeBSD. It is not that long ago when there still was no native Flash for FBSD.
I simply use FlashBlock for Firefox, so that FF doesn't try to launch Flash for every stupid Flash-based banner, and run pkill npviewer.bin every now and then. (Or when Firefox freezes.) |
|
#3
|
||||
|
||||
|
@dralex999
I do not use Flash enabled browser for all time browsing (Opera) and when I want to see a site with Flash, I launch Firefox with Flash enabled, and after I have seen what I wanted, I kill(1) both npviewer.bin and firefox processes.
__________________
Religions, worst damnation of mankind. "FreeBSD has always been the operating system that GNU/Linux should have been." Frank Pohlmann, IBM http://vermaden.blogspot.com |
|
#4
|
||||
|
||||
$ pkill npviewer does the trick for me.NB try not to use killall. If you're ever on Solaris killall does something completely different. It really kills all processes, including init.
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
| The Following User Says Thank You to SirDice For This Useful Post: | ||
noz (September 8th, 2010) | ||
|
#5
|
||||
|
||||
|
I have this in my user's crontab:
Code:
*/5 * * * * /home/myuser/flashkill > /dev/null Code:
#!/bin/sh flashcount=$(/bin/pgrep npviewer.bin | /usr/bin/wc -l) if [ $flashcount = 1 ] then /usr/bin/killall npviewer.bin fi Works like a charm. Never looked back. Don't use it on Solaris
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki Before you post: How to ask questions the smart way If you must know .. So, what does an Adminstrator/Moderator do? ---> Do not PM me with FreeBSD questions. I do not work here. <--- |
|
#6
|
|||
|
|||
|
Thanks for the script DutchDaemon, but it doesn't always kill all unused npviewer.bin.
Especially when I switch flash videos from next to next, some processes remain. So, I tried npviewer_monitor.sh Code:
#!/bin/sh
corefile=${HOME}/npviewer.bin.core
intervaltime=1
while getopts p:s: option
do
case "${option}" in
p)
parentpid=$OPTARG
;;
s)
intervaltime=$OPTARG
;;
esac
done
shift $(($OPTIND - 1))
while :
do
procstat "${parentpid}" > /dev/null 2>&1 ||
break
if [ -f "${corefile}" ]
then
pkill npviewer.bin
rm "${corefile}"
fi
sleep "${intervaltime}"
done
% daemon npviewer_monitor.sh -p $$It pkills npviewer.bin only when npviewer.bin.core exists and I put in my ~/.xsession. (Also, I recommend not to start it on xterm etc, because it automatically terminates when its parent process dies.) So far, it works well. Last edited by DutchDaemon; July 31st, 2010 at 00:35. |
|
#7
|
||||
|
||||
|
Well, it hasn't failed me once since I started using it, and I don't have coredumps. Probably a slightly different setup. Whatever works for you is fine, of course.
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki Before you post: How to ask questions the smart way If you must know .. So, what does an Adminstrator/Moderator do? ---> Do not PM me with FreeBSD questions. I do not work here. <--- |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| leaving Linux | juniorsatanas | General | 4 | June 23rd, 2010 19:26 |
| Posters and stuff | xy16644 | Off-Topic | 5 | November 11th, 2009 07:31 |
| [Solved] Weird stuff happening with SMTP | dennylin93 | Web & Network Services | 4 | September 7th, 2009 15:14 |
| Help support the BSDs by buying stuff! | aragon | Off-Topic | 11 | June 29th, 2009 14:05 |
| locale stuff | cL0N31 | General | 1 | December 11th, 2008 08:20 |