Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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
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 cooling their heels in the Monastery: (4)
As of 2020-09-23 04:43 GMT
Find Nodes?
    Voting Booth?
    If at first I donít succeed, I Ö

    Results (130 votes). Check out past polls.