Re: [naviserver-devel] large memory usage when uploading

2009-11-19 Thread John Buckman
On Nov 19, 2009, at 9:36 AM, Vlad Seryakov wrote: > Yes, regular form parser uses mmap, so for huge files it is not good > I use 1-2GB file pretty easily with the spooler. > In the script, just check if the file is spooled > > set tmpfile [ns_conn contentfile] > if { $tmpfile != "" } { > # Renam

Re: [naviserver-devel] large memory usage when uploading

2009-11-19 Thread Vlad Seryakov
Yes, regular form parser uses mmap, so for huge files it is not good I use 1-2GB file pretty easily with the spooler. In the script, just check if the file is spooled set tmpfile [ns_conn contentfile] if { $tmpfile != "" } { # Rename to keep it from being deleted on session exit file renam

Re: [naviserver-devel] large memory usage when uploading

2009-11-19 Thread Stephen Deasey
On Thu, Nov 19, 2009 at 2:25 AM, John Buckman wrote: > I'm writing an app that accepts large file uploads, and trying to lower the > memory requirements. > > When I upload large files, at the point where the files are completely > uploaded, Naviserver consumes an equivalent amount of memory as t