04-05-2006 08:16 PM
On my machine (Hp-ux 11.23) there is a perl-programm, which sometimes doesn't finish correctly (in my opinion), because it runs constantly with alsmost 100% of CPU-time. I would like to identify which programm starts, but I have no idea how to do this. How can I determine which programm was run by perl. As I am running webmin, I always get
1212:07 /opt/perl_64/bin/perl /usr/local/webmin-1.260/miniserv.pl /etc/
for any perl-programm run by webmin.
Thanks for any ideas!
Solved! Go to Solution.
04-05-2006 08:23 PM
what do you mean by "which program starts"?
To find the process taking the CPU: top
which should give you the PID
You can then use: ps -ef | grep PID_value
to get the ParentPID (second column).
Repeating this process will eventually lead you to the process that started all your sub-processes.
04-05-2006 08:27 PM
04-05-2006 09:01 PM
# ps -ef | grep
will give all process which are started by it.
04-05-2006 09:04 PM
UNIX95=1 ps -ef -o cpu= -o pcpu= -o comm= -o pid | sort -rnk 2
will give that.
Hope webmin is maintaining a log file. Try to trace it.
04-05-2006 09:40 PM
You can esily find out by giving,
# ps ef |grep -i perl
Also, You can download and install HP's Webmin which is fully supported on HP-UX/.
04-05-2006 09:42 PM
You can download http://h20293.www2.hp.com/portal/swdepot/displayPr
04-05-2006 09:46 PM
04-05-2006 09:51 PM
Latest version of Webmin supported by HP is HP-UX Webmin-based Admin 1.070.07. Not sure it is sync with Opensource webmin and it is a trimmed down version of Opensource webmin.
You will only have two modules, one for Apache and other for Tomcat.
You need to install other modules from web.