What script is running by Perl?

Dear fellow unixoids!

I need a little help (just a link would be fine) how can I investigate what specific perl script is eating 100% of cpu of my ubuntu server:

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                                                                                           
17970 root      25   0 20280  15m  764 R  100  2.9   3875:06 perl                                                                                                                                              
18048 root      16   0  2212 1084  824 R    0  0.2   0:00.55 top                                                                                                                                               
19569 www-data  16   0 36876  12m 4232 S    0  2.4   0:00.09 apache2                                                                                                                                           
22213 www-data  16   0 36940  11m 4088 S    0  2.3   0:00.04 apache2                                                                                                                                           
26263 www-data  15   0 36040  11m 3656 S    0  2.2   0:00.01 apache2                  

Couldn't find an answer on Google...
Thanks!

Try

ps -fp 17970

( this assumes that your 'perl' process that hogs the CPU is 17970 as given in your example). You should then find out the guilty script.

Lo�c

1 Like

Thank you very much!