This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: limits on number of open ostream's


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]