This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: limits on number of open ostream's
- From: Momchil Velikov <velco at fadata dot bg>
- To: aonghus at fiachra dot ucd dot ie
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: 24 Mar 2003 15:19:13 +0200
- Subject: Re: limits on number of open ostream's
- References: <20030324124952.GE1981@fiachra.ucd.ie>
>>>>> "Aonghus" == Aonghus Lawlor <aonghus at fiachra dot ucd dot ie> writes:
Aonghus> Hi,
Aonghus> I have a c++ program which opens a number of files simulataneously-
Aonghus> everything goes OK until the number of open files is greater than
Aonghus> (roughly) 1000 - then I can no longer open any new files. The
Aonghus> /proc/sys/fs/file-max is set to a much larger number, so I don't
Aonghus> suspect this is the problem.
[Assuminig you're talkin about a GNU/Linux system.]
You may want to look at setrlimit(2) and ``ulimit'' in bash (1).
~velco