in reply to Not enough space at ... HTMLDoc.pm

Welcome to perlmonks! I would look at two things, first, what is the command ($command) that you are attempting to execute. Second, look at where you are trying to execute it. For example, maybe this is being executed in an loop and it attempting to create thousands of processes. There is a limit on the number of processes you can create (which is implementation dependant).

Replies are listed 'Best First'.
Re^2: Not enough space at ... HTMLDoc.pm
by biometrics74 (Initiate) on Aug 22, 2010 at 23:36 UTC

    I can only assume the command being run is the HTMLDoc binary since the HTMLDoc.pm module is a perl interface to HTMLDoc.

    The snippet in my original post is only called once (to convert a HTML file to PDF) which would eliminate the possibility of thousands of processes being called.

    Additionally this error only occurs on the 'production' server, so the amount of debugging is limited (e.g. almost none).

    There seems to be enough swap-space. I've been monitoring it from time-to-time, the below is typical.

    swap -l swapfile dev swaplo blocks free /dev/swap 0,0 8 8228264 3407016