disk resource limits - caution
- Ploticus, by default, sets a size limit via setrlimit(2), on the size of
created files. The default size limit is 5 MB. This has turned out to be
problematic and will be removed from the next release. CPU limits will
It turns out that the disk resource limits lead to some subtle problems,
because the limit applies EVEN WHEN APPENDING!!!
For example, when running as a CGI, if ploticus writes diagnostics to
standard error, and the web server is capturing standard error and
throwing it into a file somewhere, and this file eventually gets bigger
than 5MB, ploticus will terminate with a resource limit exceeded error.
This can even sometimes occur before ploticus is able to call setrlimit(2)
to raise the limit.
Source code users can remove the problem by modifying reslimits.c to look
if( type == 'c' ) setrlimit( RLIMIT_CPU, rlp );
/* else if( type == 'f' ) setrlimit( RLIMIT_FSIZE, rlp ); */
You can also raise the limit in your config file or in the script via proc
settings, but as I mentioned this might not help in certain cases.
Stephen C. Grubb scg@...
Scientific Software Engineer, The Jackson Laboratory
600 Main Street Bar Harbor, Maine 04609 USA