httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jd list" <>
Subject [users@httpd] Fwd: mod_python memory errors
Date Mon, 27 Feb 2006 11:52:37 GMT
I have received a bunch of memory errors(below) in the virtual host
error log and evntually a refusal for mod_python to process any posted
data over ~120K.

I saw this under the following environement:
Two LAN connections in immediate sequence,each minute post a string of xml
via comamnd line curl on an embeded linux server to a
XPPro-Apache2.5.5 ModPython3.1.4.  This file is varies in size from
about 150K to 400K (8 channels of xml tags and waveform floats).  The
script, takes this posted data, and writes it to the proper directory,
and names it based on documentElement....pretty simple

I had this running for 3 days and received over 6000 files and then
this morning i noticed it stopped, and saw the following error
repeated over and over.  I took a look at pythons memory in
TaskManager(nothing interesting), but unfortuately restarted apache
before i looked at its memory.  There are no errors in the main server
error log, just the virtual host.

I noticed before i restarted it that i could send a post(exact format
as above), via pyCurl that was about 100K and that would get
processed, but if sent a larger via say 1700K, i would get another
memory_error in the log.

I realize there are a lot of places to look things to blame it on
...granted this is my development XP desktop/dev box.  It died in the
am, before any use.

What i was hoping to do with the above scenario is run about 10+ of
these devices and still be taking in a file a minute or more, and then
random files less often (10-15 minutes)

Since this wont happen again for a few days, i thought id seek out
some wisdom awaiting the crash


[Sun Feb 26 08:24:49 2006] [error] [client]
PythonHandler mod_python.publisher: Traceback (most recent call last):
[Sun Feb 26 08:24:49 2006] [error] [client]
PythonHandler mod_python.publisher:   File
"D:\\Servers\\python\\Lib\\site-packages\\mod_python\\", line
299, in HandlerDispatch\n    result = object(req)
[Sun Feb 26 08:24:49 2006] [error] [client]
PythonHandler mod_python.publisher:   File
line 134, in handler\n    req.form = util.FieldStorage(req,
[Sun Feb 26 08:24:49 2006] [error] [client]
PythonHandler mod_python.publisher:   File
"D:\\Servers\\python\\Lib\\site-packages\\mod_python\\", line
114, in __init__\n    pairs = parse_qsl(,
[Sun Feb 26 08:24:49 2006] [error] [client]
PythonHandler mod_python.publisher: MemoryError

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message