All Forums |
Register |
Login |
Search |
Subscriptions |
My Profile |
Inbox |
Tool Warehouse |
FAQs |
Resources |
Help |
Member List |
Address Book |
Logout |
|
|
increasing nofiles (descriptors)
|
Logged in as: Guest |
Users viewing this topic: none |
|
Login |
|
|
increasing nofiles (descriptors) - Jun. 29, '05, 9:04:50 AM
|
|
|
lomazzog2
Posts: 3
Joined: Feb. 4, '05,
Status: offline
|
We are getting an error; "too many files open files"
The limits are:
dca-pro236:/usr/dtha/logs$ ulimit -a
time(cpu-seconds) unlimited
file(blocks) unlimited
coredump(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) unlimited
nofiles(descriptors) 1024
vmemory(kbytes) unlimited
I've tried using “ ulimit –n unlimited “ but it doesn't change the nofiles value. Is there a way to increase the nofiles limit?
Thanks
|
|
|
RE: increasing nofiles (descriptors) - Jun. 29, '05, 9:39:06 AM
|
|
|
Rodney
Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
> We are getting an error; "too many files open files"
Which application are you getting this message from ?
Find the root cause of so many descriptors in use might be the real fix.
> I've tried using “ ulimit –n unlimited “ but it doesn't change the nofiles value. Is there a way to increase the nofiles limit?
Try doing it with an actual value instead of the word unlimited.
|
|
|
RE: increasing nofiles (descriptors) - Jun. 29, '05, 9:47:00 AM
|
|
|
lomazzog2
Posts: 3
Joined: Feb. 4, '05,
Status: offline
|
Hi Rodney
I tried " ulimit -n 2048" and I get
/bin/ksh: ulimit: bad limit: Operation not permitted.
Thanks
|
|
|
RE: increasing nofiles (descriptors) - Jun. 29, '05, 2:03:23 PM
|
|
|
markfunk
Posts: 670
Joined: Mar. 31, '03,
Status: offline
|
To increase the hard limit you have to be a privileged user.
In this instance, you have to be the account Administrator (uid=197108)
There is a registry key (MaxOpenFiles) you can set to increase this limit globally
for all Interix processes. I believe the absolute maximum value is 2048.
|
|
|
RE: increasing nofiles (descriptors) - Jun. 29, '05, 3:41:07 PM
|
|
|
lomazzog2
Posts: 3
Joined: Feb. 4, '05,
Status: offline
|
Thank you Sir;
We'll try this fix.
|
|
|
RE: increasing nofiles (descriptors) - Jun. 29, '05, 4:23:36 PM
|
|
|
Rodney
Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
> I believe the absolute maximum value is 2048.
The maximum is 4096 by the testing of it.
|
|
|
RE: increasing nofiles (descriptors) - Mar. 14, '06, 1:41:32 PM
|
|
|
hoangle
Posts: 3
Joined: Feb. 15, '06,
Status: offline
|
Hi,
I have not edited any winxp registry before.
I try to add new key MaxOpenFiles using regedit.
I go to HKEY_LOCAL_MACHINE/Softway System/Interix/3.5
then right click and choose
new/key
type: "MaxOpenFiles"
enter
in the right panel, it creates "Name" (Default), "Type" (REG_SZ), "Data" (value not set).
Then right click "Type" and choose New/REG_DWORD
under the Name, it shows New Value #1, I enter 4096.
Reboot the system, check ulimit, nothing changes, it still shows 1024.
Please show me what I did wrong.
Your input is higly appreciated.
|
|
|
RE: increasing nofiles (descriptors) - Mar. 14, '06, 4:42:05 PM
|
|
|
Rodney
Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
You set the wrong registry location.
It used to be under Softway Systems until Microsoft bought it out about 6-7 years ago.
You want "HKLM\SOFTWARE\Microsoft\Services for UNIX\MaxOpenFiles" for Interix/SFU version 3.5.
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
|
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|
|
|