RE: "Out of memory! Out of memory! Callback called exit at ..."

[email protected] ("Ludwig, Michael")
Newsgroups perl.dbi.users
Message-ID <[email protected]>
> -----Original Message-----
> From: Bob McGowan
> Subject: "Out of memory! Out of memory! Callback called exit at ..."

> I'm using DBI 1.611, DBD::mysql 4.013 and Perl 5.8.8
> 
> The error message in the subject is being generated when trying to 
> read mySQL data from a field of type "longblob".

Looks like it's two messages, the first one being repeated. Both are
Perl errors, according to this certainly informed source:

http://modperlbook.org/html/22-3-9-Callback-called-exit.html
http://modperlbook.org/html/22-3-10-Out-of-memory.html

> I initially did not have LongReadLen set, so I thought this was the 
> cause.  But, I have set LongReadLen, on the db handle, equal to 
> 20000000, and then 30000000, based on the size found for the largest 
> value, of 19296159.

Okay, that's 30 MB. Don't know if this is too much. Don't think so,
though. I'd rather suspect some flaw in the program logic.

> This did not fix the problem.
> 
> Any, all suggestions for a fix are welcome. ;)

Do you have a minimal example to reproduce the failure so people can
try this at home, or rather, inspect the code?

-- 
Michael Ludwig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.