Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: What's Wrong with program

by cdarke (Prior)
on Feb 13, 2012 at 13:28 UTC ( #953459=note: print w/replies, xml ) Need Help??

in reply to What's Wrong with program

I notice that your ReadFile subroutine reads an entire file into memory. Your 'Out of Memory' message might be concerned with that, rather than forks and threads. Although there are a number of places where you fork child processes (date, awk, rm) unnecessarily, I doubt you would get that particular error message. Are the files being read on each machine exactly the same size?

A good move would be to trace when the program is executing when it crashes. If you do that, make sure you print to STDERR (or maybe use warn) in case messages are lost through buffering.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://953459]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2021-10-21 16:05 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (83 votes). Check out past polls.