in reply to Re: My code randomly stops working
in thread My code randomly stops working

One anecdote to relate: Where I work there is a piece of Perl code that processes thousands of emails. One of the early "bugs" discovered in this code was that it grew RSS wise and since there were several copies of this code running constantly this could become a problem. To solve the issue the developer added introspective code to determine the scripts RSS size and if it went over a certain amount it spawns and dies.

Given that you stated that the issue you are experiencing happens after the code has been running for a while maybe you could do something similar?


Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg

Replies are listed 'Best First'.
Re^3: My code randomly stops working
by McA (Priest) on Mar 27, 2013 at 15:19 UTC

    The better: As soon as the process uses more than a defined amount of memory it should invoke a machine reboot...

    McA

    P.S.: Sorry, couldn't resist ;-)

      Well... the newest version of the software I cited doesn't run out of memory quite as fast. The developer re-architected it completely (he inherited the code originally) and it behaves much better and more efficiently.


      Peter L. Berghold -- Unix Professional
      Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg