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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

To many open files in system -- ERROR

Status
Not open for further replies.

zum

Technical User
Mar 31, 2003
148
US
I'm getting an error on my FreeBSD server saying, "to many open files in system". Does anyone know how to change the settings on this?

Thanks.
 
It is set in /etc/sysctl.conf. Not at a FreeBSD server right now but search on open files and sysctl.conf on google or the freebsd.org site and that will answer it for you.
 
Depending on your setup (mine is a dual 1.4) add this to your sysctl.conf
Code:
kern.maxfiles=1000000           # System-wide limit
kern.maxfilesperproc=1000000    # Per-process limit
kern.ipc.somaxconn=1000000      # Socket limit
kern.maxprocperuid=1000000      # Process per uid
kern.maxfilesperproc=1000000    # File per process

M. Brooks
 
Ignore these since they don't apply to the question asked
Code:
kern.ipc.somaxconn=1000000      # Socket limit
kern.maxprocperuid=1000000      # Process per uid

M. Brooks
 
Thanks for the responses. When I add the changes to my sysctl.conf file will I need to reboot the server for the changes to take effect?
 
Well I tried entering in the settings suggested. Only problem is once I entered them and rebooted the server my Sybase that I have also running on this server wouldn't start up.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top