Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

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]
[choroba]: Good morning! I'll be mostly absent today, a day off at work, children have concerts and other activities...
[Corion]: Hi choroba! Yay, day off sounds great! I hope the performances of the kids go well!

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (10)
As of 2017-12-12 08:47 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (327 votes). Check out past polls.