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

发布于 2024-08-09 07:44:11 字数 725 浏览 1 评论 0原文

在完全随机的时间,我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

瑾夏年华 2024-08-16 07:44:11

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

Do you have Apache::Reload loaded? Are you running DBD::MySQL from debian apt or from CPAN?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文