如何配置 Devel::SmallProf 来与 mod_perl 一起使用?
我正在安装以下版本:
Apache::SmallProf - 0.09
Apache::Registry - 2.01
Devel::SmallProf - 2.02
我尝试在我的 apache 配置文件(/usr/local/apache_modperl/conf/httpd.conf)中添加以下设置:
<Perl>
require Apache::DB;
Apache::DB->init;
</Perl>
<Directory /home/website/www/cgi-m>
SetHandler perl-script
PerlSetVar Filter on
PerlSetVar CleanLevel 5
PerlAddVar CleanOption whitespace
PerlHandler Apache::Registry
PerlFixupHandler Apache::SmallProf
Options ExecCGI
</Directory>
当我第一次通过 Web 浏览器请求运行 CGI 时,这里是我收到的错误消息:
[doraemon] [modperl] [Mon Jun 22 07:20:39 2009] [error] /usr/local/apache_modperl//logs/smallprof does not exist: No such file or directory at /usr/local/lib/perl/5.8.8/Apache/SmallProf.pm line 46.\n [failed] [Connection refused]
好的。 至少我知道小教授正在尝试逃跑。 因此,我手动创建目录 /usr/local/apache_modperl/logs/smallprof 并确保任何人都可以写入它。
我再试一次:
[doraemon] [modperl] Attempt to free unreferenced scalar: SV 0x11a9ac78, Perl interpreter: 0x9e6ba80 at (null) line 236. [failed] [Connection refused]
[doraemon] [modperl] [Mon Jun 22 07:22:22 2009] [notice] child pid 10203 exit signal Segmentation fault (11) [success]
任何建议将不胜感激。
谢谢。
I have the following version being installed:
Apache::SmallProf - 0.09
Apache::Registry - 2.01
Devel::SmallProf - 2.02
And I try to add the following settings in my apache config file (/usr/local/apache_modperl/conf/httpd.conf):
<Perl>
require Apache::DB;
Apache::DB->init;
</Perl>
<Directory /home/website/www/cgi-m>
SetHandler perl-script
PerlSetVar Filter on
PerlSetVar CleanLevel 5
PerlAddVar CleanOption whitespace
PerlHandler Apache::Registry
PerlFixupHandler Apache::SmallProf
Options ExecCGI
</Directory>
When I first run by request a CGI through web browser, here is the error message I get:
[doraemon] [modperl] [Mon Jun 22 07:20:39 2009] [error] /usr/local/apache_modperl//logs/smallprof does not exist: No such file or directory at /usr/local/lib/perl/5.8.8/Apache/SmallProf.pm line 46.\n [failed] [Connection refused]
OK. At least I know smallprof is trying to run. Hence, I manually create directory /usr/local/apache_modperl/logs/smallprof and ensure it is writable by anyone.
I try again:
[doraemon] [modperl] Attempt to free unreferenced scalar: SV 0x11a9ac78, Perl interpreter: 0x9e6ba80 at (null) line 236. [failed] [Connection refused]
[doraemon] [modperl] [Mon Jun 22 07:22:22 2009] [notice] child pid 10203 exit signal Segmentation fault (11) [success]
Any advice will be much appreciated.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
实际上,使用 Devel 可能会更轻松::NYTProf::阿帕奇:
You might actually have an easier time with Devel::NYTProf::Apache: