mod_perl应用程序有奇怪的间歇性mysql驱动程序问题

时间:2009-10-28 03:40:43

标签: mysql mod-perl2

在完全随机的时间我的mod_perl脚本崩溃没有明显的原因,这是我得到的错误:

[error] install_driver(mysql) failed: Attempt to reload DBD/mysql.pm aborted.\nCompilation failed in require at (eval 20) line 3.\n\n at

但等待它变得更好。有时它就是这样:

[error] install_driver(mysql) failed: Can't load '/usr/lib/perl5/auto/DBD/mysql/mysql.so' for module DBD::mysql: /usr/lib/perl5/auto/DBD/mysql/mysql.so: failed to map segment from shared object: Cannot allocate memory at /usr/lib/perl/5.10/DynaLoader.pm line 196.\n at (eval 17) line 3\nCompilation failed in require at (eval 17) line 3.\nPerhaps a required shared library or dll isn't installed where expected\n at

请注意,我是唯一一个点击此应用程序的人因为我处于开发模式atm所以我怀疑这是一个并发问题。

一切都很好,否则很奇怪。我正在使用apache 2运行Debian 5.0的VPS和mysql 5.0.51a-24 + lenny2

感谢您的帮助!

1 个答案:

答案 0 :(得分:0)

你是否加载了Apache :: Reload?你是从debian apt运行DBD :: MySQL还是从CPAN运行?