in reply to Re: How to put a fat program on a (memory) weight-loss diet?
in thread How to put a fat program on a (memory) weight-loss diet? [SOLVED]
I can now conclusively see that it fails when loading DBD::mysql (specifically when loading mysql.so under conditions known to be correct): it successfully loads, but then fails to initialize that module. This produces the message:
Undefined subroutine &DBD::mysql::db::_login called ...... because the _login subroutine is implemented in the XS-extension .so that didn't get loaded. (Other messages, such as unexpectedly increased this-or-that, can occur for the same fundamental reason.)
But the program keeps going, by design. In fact it produces a credible “an error occurred” output of its own making. (In my local tests, it has about a 50% chance of doing that; at other times it bombs with Perl's sudden-death “Out of Memory!”)
As the final coffin-nail to the diagnosis, the program is known to work properly both in my test-rig and in the hosting company's test rig. And I can induce it to fail ... 50% or so of the time “in the same way” ... through the use of ulimit as described in other recent threads by me.
So the fundamental nature of the problem, by now, is conclusively known ... copious thanks to the Esteemed Monks!
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to put a fat program on a (memory) weight-loss diet?
by perrin (Chancellor) on Mar 04, 2009 at 16:35 UTC | |
by locked_user sundialsvc4 (Abbot) on Mar 04, 2009 at 16:44 UTC |