Hi!

We are using AOL 4.5.1 (OpenACS) in production environment with many file uploads (and downloads) and the memory usage increases continously. We begin with near 4 GB RAM and the this increase to near 11 GB of virtual memory and we have to restart the server. When the server is over 6 GB of memory, the execs (sendmail, unzipos, ...) can not be launched. Fork problem. I will like find any
solution to that mem increase.

We have developed a small ns library (using mkZiplib1.0) that we have named nsunzip, to avoid the execs of unzip. We plan add too zip action. If anybody are interested I can send it.

Regards,
Agustin

Tom Jackson escribió:
John,

I would ditch using ns_getform and roll your own instead. What you
seem to have proven is that you can upload large files with AOLserver
4.5 and the overflow goes to disk.

The question remains: how to deal with the data on disk? [ns_conn
files] gives you offsets, how do you copy that data somewhere else
without bloating memory?

Maybe [ns_conn copy] is the problem. If it loads $len bytes into
memory before it writes a file, that will bloat the memory. You might
verify that this isn't a memory leak, but rather a high water mark on
memory usage. Do two identical uploads, or three continue to increase
memory usage, or does it stop growing? If it keeps growing, that could
indicate some mem leak bug.

tom jackson

On Mon, Nov 23, 2009 at 6:18 PM, John Buckman <j...@bookmooch.com> wrote:
Tom, thanks for the help!

Setting maxinput as per:

ns_section "ns/server/$server1/module/nssock"
    ns_param   maxinput        1024
does indeed avoid memory bloat during the large file upload. I used your safer 
ns_getform: it works fine,

However, your ns_getform causes the nsd process to grow to the size of the 
uploaded file.

I can't figure out what it is in your code that uses lots of memory. Any idea?

-john


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to 
<lists...@listserv.aol.com> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.



--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to 
<lists...@listserv.aol.com> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.




--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to 
<lists...@listserv.aol.com> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to