Operating System - HP-UX
1838696 Members
5243 Online
110128 Solutions
New Discussion

Re: /bin/cp: Too many open files in system

 
Russ McGinley
Advisor

/bin/cp: Too many open files in system

I'm trying to do a cp from one server to another, and get the "Too many open files in system" error. I've searched the net and found resolutions for everything except HP-UX. Anyone have a fix for this?

Thanks,
Russ
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: /bin/cp: Too many open files in system

Russ,

You can try increasing the "nfiles" kernel paramter.

Pete

Pete
A. Clay Stephenson
Acclaimed Contributor

Re: /bin/cp: Too many open files in system

You are not hitting the maximum system-wide files limit but rather the per process limit. The kernel tunables for this are 'maxfiles' - the soft limit and 'maxfiles_lim' - the hard limit.

If you are running the POSIX shell, a ulimit -a (nofiles) will display the limit.
If it ain't broke, I can fix that.
Pete Randall
Outstanding Contributor

Re: /bin/cp: Too many open files in system

Ahh! Thanks, Clay.

Pete
S.K. Chan
Honored Contributor

Re: /bin/cp: Too many open files in system

You simply have to increase "maxfiles". Use SAM to bump up the kernel value. Maybe double the value and see if that helps.
Sajid_1
Honored Contributor

Re: /bin/cp: Too many open files in system

hello,

This error message usually comes because of a Kernel parameter value- maxfiles. You could increase this using SAM and reconfigure the Kernel.

HTH
learn unix ..
James R. Ferguson
Acclaimed Contributor

Re: /bin/cp: Too many open files in system

Hi Russ:

There are actually several kernel parameters that create boundries for the maximum number of open files -- 'maxfiles', 'maxfiles_lim', 'nfile' among them. Have a look here for a concise summary and a better understanding of the interrelationships:

http://docs.hp.com/hpux/onlinedocs/939/KCParms/KCparams.OverviewAll.html

In particular, see the section headed "Configurable Open or Locked Files Parameters".

Regards!

...JRF...