Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://953459]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2016-12-03 18:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (56 votes). Check out past polls.