This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / 怎样查看perl在执行哪个scripttop发现perl占用不少CPU,在nobody名下,应该是通过apache执行的,但没有显示具体执行的是什么script
用PS命令的什么参数组合可以看到到底perl在执行什么?
谢谢!
-life_is_so_short(人生苦"短");
2005-4-27
{153}
(#2263843@0)
-
ps -ef |grep perl
-unknown2me(行者);
2005-4-27
(#2263975@0)
-
ps -efww | grep perl
-qq0785(花椒);
2005-4-27
(#2263992@0)
-
都不行,是通过apache执行的,所以你prep perl看不到任何东西, grep httpd也只能看到/usr/local/apache/bin/httpd之类的
-life_is_so_short(人生苦"短");
2005-4-28
(#2265985@0)
-
查一查apache的log. 看看哪些html文件在调用,而且时间和这些perl程序运行时间一样。
-unknown2me(行者);
2005-4-29
(#2267930@0)
-
could be mod_perl
-redspider(红蜘蛛);
2005-4-28
(#2266111@0)
-
These are the three methods you can use to detect which one consume the CPU time.- ps command, Solaris you can use " ps -ef | grep perl ", Freebsd and linux you can use "ps ax | grep perl". (see man page for detail)
- Check you Apache log file, httpd-access.log, there list all the files have been access. You can figure out which files is opening and executing from the timestamp
- Learn to use "top" command, it is the same on Solaris, Linux and BSD box. It will show you which one comsume your CPU time.
-bugfree(BugFree);
2005-4-29
{438}
(#2269581@0)