[mod_python] mod_python.servlet: DBNoMemoryError

Graham Dumpleton grahamd at dscpl.com.au
Sat May 6 20:02:07 EDT 2006

On 06/05/2006, at 1:29 AM, Cassiano, Marco wrote:

> Hi All,
> I've just uninstalled the Redhat 3 httpd RPM and compiled httpd  
> (2.0.55) from source because I needed the updated APXS.
> Now I sometimes get this error in functions that worked ok before :
>  mod_python.servlet: DBNoMemoryError: (12, 'Cannot allocate memory  
> -- malloc: Cannot allocate memory: 16384')
> anyone could give me on advice on it ?

If mod_python.servlet is mpservlets, I don't recollect it having any  
sort of database
component, so thus suspect that you must be using MySQLdb or some other
database module. If this is the case, you may have a mismatch between  
MySQL shared libraries are being found and what the Apache/Python  
needing them were compiled against. Such mismatches are known to cause
strange behaviour. See:


for some related information about what problems can occur.


More information about the Mod_python mailing list