Closed Bug 143923 Opened 23 years ago Closed 23 years ago

Error message setrlimit(RLIMIT_NOFILE): Invalid argument upon startup

Categories

(SeaMonkey :: Build Config, defect)

Sun
SunOS
defect
Not set
minor

Tracking

(Not tracked)

VERIFIED INVALID

People

(Reporter: bugzilla.mozilla.org-3, Assigned: netscape)

References

()

Details

(Keywords: relnote)

When I run Mozilla, I get the following error message upon startup: $ ./run-mozilla.sh setrlimit(RLIMIT_NOFILE): Invalid argument Cannot exceed hard limit for open files After that Mozilla starts up as expected and runs appearently without problems. This sounds like it has something to do with "ulimit". These are the current limits (I did not set them explicitly, so they must be the default settings on this system): $ ulimit -a core file size (blocks) 5000 data seg size (kbytes) unlimited file size (blocks) unlimited open files 100 pipe size (512 bytes) 10 stack size (kbytes) 8192 cpu time (seconds) unlimited max user processes 100 virtual memory (kbytes) 500000 I just downloaded, gunzipped and untarred Mozilla in my homedir (as a regular user) and then started it. I am not too familiar with Solaris, so if you would like me to provide further information about my system, you will need to tell me how to retrieve the informatione. Using Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.0rc1) Gecko/20020418
Over to NSPR; that seems to be the only thing in a mozilla install matching "setrlimit"
Assignee: Matti → wtc
Status: UNCONFIRMED → NEW
Component: Browser-General → NSPR
Ever confirmed: true
Product: Browser → NSPR
QA Contact: imajes-qa → wtc
The error messages setrlimit(RLIMIT_NOFILE): Invalid argument Cannot exceed hard limit for open files come from the following code in the InstallUnixSignalHandlers() function in mozilla/xpfe/bootstrap/nsSigHandlers.cpp: 220 if (setrlimit(RLIMIT_NOFILE, &rl) < 0) { 221 perror("setrlimit(RLIMIT_NOFILE)"); 222 fprintf(stderr, "Cannot exceed hard limit for open files"); 223 } Mozilla's main() function calls InstallUnixSignalHandlers().
Assignee: wtc → Matti
Component: NSPR → Browser-General
Product: NSPR → Browser
QA Contact: wtc → imajes-qa
100 seems rather small. can you change your limit? we might end up just relnoting this.
Assignee: Matti → seawood
Component: Browser-General → Build Config
QA Contact: imajes-qa → granrose
Yes, 100 is far too low for the number of components that mozilla tries to open; not to mention any tmpfiles or downloaded files. The setrlimit call is attempting to reset the open files soft-limit to 512. Your system isn't allowing that so you will need to use ulimit to reset the number of open files. I don't recall the exact command but `man ulimit` should tell you.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
> 100 seems rather small. can you change your limit? No, appearently I am not allowed to change it: $ ulimit -Hn 1000 bash: ulimit: cannot modify limit: Not owner I'll try to convince the system administrator here to raise the limit. Thanks.
verified invalid.
Status: RESOLVED → VERIFIED
This info needs to go into the release notes. Question: What is the recommended _minimum_ amount of open-files-per-process required to run mozilla+mailnews+editor successfully ?
Keywords: relnote
512 is the minimum and recommended value.
cls: Do we have any recommendations for the other limit/ulimit values like: - data seg size (kbytes) - file size (blocks) - stack size (kbytes) - virtual memory (kbytes) ?
I don't know of any other recommended values.
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.