Free Downloads, Community Forum,
FAQs and Developer Resources


Make /Tools Your Home | Link to us

Today's posts | Posts since last visit | Most Active Topics

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
  Printable Version
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> increasing nofiles (descriptors) Page: [1]
Login
Message << Older Topic   Newer Topic >>
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
Post #: 1
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.

(in reply to lomazzog2)
Post #: 2
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

(in reply to lomazzog2)
Post #: 3
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.

(in reply to lomazzog2)
Post #: 4
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.

(in reply to markfunk)
Post #: 5
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.

(in reply to lomazzog2)
Post #: 6
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.

(in reply to Rodney)
Post #: 7
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.

(in reply to hoangle)
Post #: 8
Page:   [1]
All Forums >> [SFU / Interix / SUA Technology] >> Interix Advanced Forum >> increasing nofiles (descriptors) Page: [1]
Jump to:





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


Search All Forums -

Advanced search


SPONSORS



Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI

0.047