我怎样才能追查mod_perl的CPU密集型的请求? [英] How can I track down CPU intensive requests in mod_perl?

查看:144
本文介绍了我怎样才能追查mod_perl的CPU密集型的请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Ubuntu 8.04使用Apache 2.2而mod_perl我有一个服务器上的多个应用程序。在pre-分叉模式使用Apache。通常的东西在一段时间我看到使用CPU的100%的Apache进程的一个运作良好,但一次。

Using Apache 2.2 and mod_perl on Ubuntu 8.04 I have several applications on a server. Using Apache in pre-forking mode. Usually things are working well but once in a while I see one of Apache processes using 100% of the CPU.

有服务器上的几个网站用自己的VirtualHosts,有
是与通过Apache运行SVN服务器。

There are several web sites on the server with their own VirtualHosts and there are is and SVN server running via Apache.

我怎么能跟踪哪些应用程序,它调用了该应用程序产生的高负荷?

How could I track down which application and which calls in that application generate the high load?

推荐答案

杰韦利:: NYTProf 是pretty多为Perl的premier探查,现在,用的杰韦利:: NYTProf ::阿帕奇的,可方便地分析mod_perl的应用程序。

Devel::NYTProf is pretty much the premier profiler for Perl right now, with Devel::NYTProf::Apache for easily profiling mod_perl applications.

请参阅蒂姆·邦斯:NYTProf V2 - 在Perl剖析一个重大进步获取一个图片pretty概述

See Tim Bunce: NYTProf v2 – A major advance in perl profilers for a pretty overview with pictures.

不幸的是,杰韦利:: NYTProf不是pre-打包在Ubuntu哈迪。 (它是pre-封装在贾蒂,业报,清醒,后来)。你可以使用一些容易挂羊头卖狗肉,以从这些分布安装软件包,从CPAN安装,或者只是升级; - )

Unfortunately, Devel::NYTProf isn't pre-packaged in Ubuntu Hardy. (It is pre-packaged in Jaunty, Karmic, Lucid, and later.) You can either use some apt trickery to install packages from those distributions, install from CPAN, or just upgrade ;-)

这篇关于我怎样才能追查mod_perl的CPU密集型的请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆