mod_perl 应用程序有奇怪的间歇性 mysql 驱动程序问题
在完全随机的时间,我的 mod_perl 脚本没有明显原因崩溃,这是我收到的错误:
[error] install_driver(mysql) failed: Attempt to reload DBD/mysql.pm aborted.\nCompilation failed in require at (eval 20 ) 第 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: 无法从共享对象映射段: 无法在 /usr/lib/perl/5.10/DynaLoader.pm 第 196 行分配内存。\n 在 (eval 17) 第 3 行\ nCompilation failed in require at (eval 17) line 3.\n也许所需的共享库或 dll 未安装在预期的位置\n at
请注意,我是唯一一个在开发中点击此应用程序的人模式 atm 所以我怀疑这是并发问题。
一切都运转良好,否则就很奇怪。我在运行 Debian 5.0 的 VPS 上运行 apache 2 和 mysql 5.0.51a-24+lenny2
感谢您的帮助!
At completely random times my mod_perl scripts crash for no discernible reason, here's the error I get:
[error] install_driver(mysql) failed: Attempt to reload DBD/mysql.pm aborted.\nCompilation failed in require at (eval 20) line 3.\n\n at
but wait it gets better. Sometimes it's this instead:
[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
Mind you that I am the only one hitting this app as I'm in dev mode atm so I doubt it's a concurrency issue.
Everything works very well otherwise, it's weird. I'm on a VPS running Debian 5.0 with apache 2 and mysql 5.0.51a-24+lenny2
Thanks for any help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否已加载 Apache::Reload ?您是从 debian apt 还是从 CPAN 运行 DBD::MySQL?
Do you have Apache::Reload loaded? Are you running DBD::MySQL from debian apt or from CPAN?