Sewi has asked for the wisdom of the Perl Monks concerning the following question:
Happy new year monks,
strace shows syscalls being executed by a running process, lsof (or /proc/PID/fd) shows information about open files), but are there any other (Perl-specific) tools/ways/tricks to get information about an already-running process?
I got some Perl jobs which sometimes run for a long time (hang but recover after some - usually huge - delay). In this case, I know that this is database/mySQL-related and I know which few source lines are looping (waiting for a specific mySQL state), but having any additional information about them would be great, same for other tasks which rarly hang due to other reasons which usually arent' reproduceable.
I can't start all these jobs in the debugger and they're running unattended, only hang/crash-reports show their results and I want to extend these reports.
Thank you.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Information about running Perl script
by Anonymous Monk on Jan 02, 2012 at 07:31 UTC | |
|
Re: Information about running Perl script
by Eliya (Vicar) on Jan 02, 2012 at 12:15 UTC | |
|
Re: Information about running Perl script
by Sewi (Friar) on Jan 02, 2012 at 20:20 UTC |