Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Too many open files: Solaris 7 error message 3

Status
Not open for further replies.

bi

Technical User
Apr 13, 2001
1,552
US
We have received the following error in a program (that is under development):

Too many open files in File: /abc/def/hij/klm.log

We can't tell at this point if the system is complaining about too many files opened for all users or just too many files for one user.

Is there a kernel parameter in Solaris (SPARC) that we can set that would allow more files to be opened at one time, either system wide or per user?

Thanks for any help.
 
Hi ,
I have just posted an almost identical query. Have you had any joy in fixing this yet?

 
No, I still don't have an answer. We are running cobol on this system and I suspect that may be part of the problem, but I'm still at a total loss.
 
I have just got this from SUN, it may be relevent to you:

There is a hard limit set on the number of file descriptors per process.
This limitation is by default set to 1024. This cannot be exceeded by
either limits(csh) or ulimt(sh) commands. The users get a limit of 64
file descriptors and can increase it to 1024. Here is what has to be
done to further increase this limit.

There are two variables in the kernel that can be modified to set these
limits. The limits are called the hard limit or the max allowed and the
soft or the current limit. The two variables that can be modified are
rlim_fd_max & rlim_fd_cur. Set the following in the /etc/system file.

set rlim_fd_max=<the maximum value>
set rlim_fd_cur=<the default for all shells>

Some software, for example Oracle, will specify a number of kernel parameters to
tune to best fit their software. It might be worth checking this out if it's
applicable.

 
Thanks, jaundrill. I'll try this first thing Friday morning.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top