[Orca-users] too many open files issue
Blair Zajac
blair at orcaware.com
Wed Jul 7 13:47:57 PDT 2004
Stoltzfus, Mark (HQP) wrote:
>
> I've googled for the answer to my current orca issue, which is that I'm
> getting errors such as this:
>
> ./orca: warning: cannot create Orca::HTMLFile object: cannot open
> `/www/sites/orca/html/orcallator/o_gold_gauge_qfe5Ipkt_per_s,__qfe5Opkt_per_s.html.htm'
> for writing: Too many open files.
>
> And I saw that about two years ago, this problem was discovered to be
> specific to perl on Solaris, having to do with fopen(). I've tested the
> perl code that was posted to the list on both Solaris and Tru64, and it
> only hit the 256 descriptor limit on Solaris. So, the question is, does
> anyone know a way around this? The solution mentioned on the FAQ
> doesn't fix this (manually setting ulimit in the shell).
Mark,
Check your version of lib/Orca/OpenFileHash.pm and see how large the open file
cache is. In the current version of Orca, it is 100 files, so that should be
small enough.
# Set up a cache of 100 open file descriptors for the source data
# files. This leaves a large number of free file descriptors for
# other use in the program.
use vars qw($open_file_cache);
unless ($open_file_cache) {
$open_file_cache = Orca::OpenFileHash->new(100)
}
Check your OpenFileHash.pm and see how small it is.
What is the ulimit for your Orca process?
Blair
--
Blair Zajac <blair at orcaware.com>
Plots of your system's performance - http://www.orcaware.com/orca/
More information about the Orca-users
mailing list