Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Parallel::ForkManager and possible memory leak

by bitingduck (Chaplain)
on Feb 17, 2015 at 16:41 UTC ( #1117008=note: print w/replies, xml ) Need Help??


in reply to Parallel::ForkManager and possible memory leak

Does the server not hang if you don't run the script? Are there logs that you can sift through to see what's happening when the server hangs and if it's consistent in some way?

  • Comment on Re: Parallel::ForkManager and possible memory leak

Replies are listed 'Best First'.
Re^2: Parallel::ForkManager and possible memory leak
by jamesgerard1964 (Novice) on Feb 17, 2015 at 17:13 UTC

    When I say hangs it is not accessible. Cannot login, scp, sftp, anything. It is pingable but that is all. I have print statements in the code, I didn't post them, I just wanted to be sure the code portion is correct. This hanging issue has only happened once I started the fork process. If I remove the Parallel::ForkManager and just let the script run one server after the other, then it runs fine, but it takes well over 5 minutes to complete. I have a snippet of logging from yesterday where the server became unusable. I have print statements that say when the program starts, when the child processes have ended. When we hit the timeout condition it appears that the server had issues.



    02/16/15 10:34:03 Program SendRemote_PullMetrics Started

    Mon Feb 16 10:36:28 2015: Waiting For All Child To Finish

    Mon Feb 16 10:36:34 2015: All processes finished.

    02/16/15 10:36:44 Program SendRemote_PullAPIMetrics Completed



    02/16/15 10:39:05 Program SendRemote_PullMetrics Started

    Mon Feb 16 10:41:39 2015: Waiting For All Child To Finish

    Mon Feb 16 10:41:45 2015: All processes finished.

    02/16/15 10:41:58 Program SendRemote_PullAPIMetrics Completed



    02/16/15 10:44:07 Program SendRemote_PullMetrics Started

    TimeOut Over 3 Minutes to Complete All Servers, Continuing...


    Never got a complete message and then the Server became unusable.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2018-09-26 00:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Eventually, "covfefe" will come to mean:













    Results (205 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!