Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Debugging forking perl script? GDB?

by cavac (Curate)
on Nov 18, 2019 at 13:40 UTC ( #11108869=note: print w/replies, xml ) Need Help??


in reply to Re: Debugging forking perl script? GDB?
in thread Debugging forking perl script? GDB?

No fork bomb. Just sometimes one of the children decides to loop forever somewhere...

perl -e 'use MIME::Base64; print decode_base64("4pmsIE5ldmVyIGdvbm5hIGdpdmUgeW91IHVwCiAgTmV2ZXIgZ29ubmEgbGV0IHlvdSBkb3duLi4uIOKZqwo=");'

Replies are listed 'Best First'.
Re^3: Debugging forking perl script? GDB?
by Anonymous Monk on Nov 21, 2019 at 08:36 UTC

    Include the PID and workload information (request url, rpc method name, queue item details, etc) in your logs along with start/end timestamps for processing the work.

    You can then look up the PID in the logs and find out what that pesky pegged worker is up to.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2021-01-22 04:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?