我已经做了一个“netstat”,发现有些进程持有DB和网络套接字太长时间了,现在我想知道是什么脚本导致了它.
顺便说一下,我正在使用linux.
解决方法 您需要启用Apache模块mod_status
(CentOs主Apache@R_419_6179@位于/etc/httpd/conf/httpd.conf) LoadModule status_module modules/mod_status.so
使用选项ExtendedStatus on
(这将在与上面相同的@R_419_6179@中设置)
# ExtendedStatus controls whether Apache will generate "full" status# information (ExtendedStatus On) or just basic information (ExtendedStatus# Off) when the "server-status" handler is called. The default is Off.#ExtendedStatus On
以及为此设置的一些访问权限(将XXX.XXX.XXX.XXX替换为您的IP – 这可以在与上面相同的@R_419_6179@中找到)
# Allow server status reports generated by mod_status,# with the URL of http://servername/server-status# Change the ".example.com" to match your domain to enable.#<Location /server-status> SetHandler server-status Order deny,allow Deny from all Allow from localhost 127.0.0.1 XXX.XXX.XXX.XXX</Location>
最后,您将通过访问http://your-server-name/server-status来查看每个httpD进程正在执行的 *** 作
这将显示当前正在以here呈现的方式处理的pIDs和URL.
总结以上是内存溢出为你收集整理的linux – 查找每个HTTPD进程上运行的PHP脚本全部内容,希望文章能够帮你解决linux – 查找每个HTTPD进程上运行的PHP脚本所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)