Re: "Too many open files" and reboot fail advice
Pierre Frisch <[email protected]> Tue, 22 Feb 2005 14:48:24 -0800
| Newsgroups | gmane.comp.web.webobjects.admin |
|---|---|
| Message-ID | <[email protected]> |
Hi John, Actually it does. Root tasks have no limit as to the number of file descriptor they can own. All other processes have a maximum number of file descriptor. The problem is that Java and WO open quite a few descriptor and you can quite quickly run out. This why running WO apps as root work better. Pierre -- Pierre Frisch President sPearWay Ltd. phone: +1 604 929 9610 ext 6011 email: [email protected] sPearCat Web Catalogs, Custom designed in-house with the click of a mouse. http://www.spearcat.com/ On Feb 22, 2005, at 13:15, Matthew Jew wrote: > John, > > I also had (more than once) the "too many open files" problem. > > Pierre Frisch gave me a solution that has worked for me 100% of the > time, > although it had nothing really to do with "open files" in my view. > > (It is just a workaround, really.) > > He said: > >>>>> I had a series of exchange with Apple and we fixed a couple of bug >>>>> changed the process of wotaskd and monitor back to root and the >>>>> machine appears to be back to the level it was before the update. >>>>> I still have a concern with too many CLOSE_WAIT. There is >>>>> something to fully under control in the wotask/monitor/OS >>>>> interaction. > >>> The root think is described in the mailing list it is really quite >>> easy go in /System/Library/WebObjects/JavaApplications/wotaskd.woa/ >>> and change the ownership of wotaskd and >>> Contents/Resources/javawoservices.sh > > Changing the ownership of wotaskd and javawoservices.sh to root fixed > the problem for me. > I understand that changing these two things back to root leaves your > system in a somewhat less secure state, > but I could not find any other way to fix the problem (I think they > used to be owned by root, and then were changed to something else > to increase security. However, the change caused some people to have > the "too many open files" problem.) > (The security issue arises, I assume, from wotaskd having more > privileges than it really needs.) > > Anyway, give it a try; it worked for me, and I have had to re-apply > the workaround each time I have upgraded > the system. > > - Matthew > >> All, >> >> We are currently suffering the dreaded "Too many open files" problem >> that I >> have now read about in many previous postings to this list. It has >> happened >> since I moved to Panther. >> >> JavaMonitor fails to stop/start instances, the instances themselves >> fill >> their log files with IOExceptions, too many open files. > > _______________________________________________ > WebObjects-admin mailing list > [email protected] > http://www.omnigroup.com/mailman/listinfo/webobjects-admin >