[Opera-Linux] How'd Opera use so many FDs? (fwd)
Kenneth Crudup
kenny at panix.com
Fri Mar 20 17:01:44 UTC 2009
On Tue, 23 Dec 2008, Kenneth Crudup wrote:
> > I ran an "lsof" on my opera 'cause it was non-responsive ...
> > What I saw was Opera not having any more FDs to play with:
> > Certainly this has to be happening to someone else, too?
OK, having been bitten by running out of FDs so many times in Opera 9.6X
(the 10.X betas still dump core far too often - I'll be glad when the new
crash-dump facility is ready for Linux!), and its resulting effects (not
being able to save state on exit, dialog boxes coming up blank 'cause
it can't open font files, etc.) I decided to solve the problem by
bumping up the per-user open-file limit on Linux:
I added this line to /etc/security/limits.conf :
kenny - nofile 10240
... giving me 10K open FDs, so when Opera 9.64 needs an ridiculous
amount of open files, like this:
----
opera 6664 kenny 2105r REG 8,18 17090 54403 /home/kenny/.opera/cache4/opr0CUHI
opera 6664 kenny 2106r REG 8,18 13877 63670 /home/kenny/.opera/cache4/opr0CUBK
opera 6664 kenny 2107r REG 8,18 14786 63632 /home/kenny/.opera/cache4/opr0CUAT
opera 6664 kenny 2108r REG 8,18 19725 63777 /home/kenny/.opera/cache4/opr0CUDN
opera 6664 kenny 2109r REG 8,18 17164 63623 /home/kenny/.opera/cache4/opr0CUAL
opera 6664 kenny 2110r REG 8,18 10421 63870 /home/kenny/.opera/cache4/opr0CUF7
opera 6664 kenny 2111r REG 8,18 15749 63685 /home/kenny/.opera/cache4/opr0CUBW
opera 6664 kenny 2112r REG 8,18 13488 63698 /home/kenny/.opera/cache4/opr0CUC5
opera 6664 kenny 2113u IPv4 507329 TCP hp9800.local:45530->www.dslreports.com:www (CLOSE_WAIT)
opera 6664 kenny 2118u IPv4 505720 TCP hp9800.local:45529->www.dslreports.com:www (CLOSE_WAIT----
... it can get 'em. But *certainly* someone's gotta know why there's
2048 cache files alone open, right?!
-Kenny
--
Kenneth R. Crudup Sr. SW Engineer, Scott County Consulting, Los Angeles
O: 3630 S. Sepulveda Blvd. #138, L.A., CA 90034-6809 (888) 454-8181
More information about the Opera-Linux
mailing list