I just tried upload.tcl on my 32bit linux, latest sources with

maxupload 10000000
maxinput 8904984589

works without problem, memory usage during upload of the nsd process stays the same and in /tmp i can see the file is growing

i attached piece from my log, at the end there should be line reporting about the file, i do not see it in your log file

John Buckman wrote:
I've enabled debugging to try to find the spooler-on-linux problem I'm having.  
Unfortunately, I don't think it's very enlightening:

[-driver:nssock-] Debug: Spooler: 0: started fd=7: 1687742 bytes
[-conn:amagnatune:0] Debug: ns:interptrace[amagnatune]: create nslog:initinterp 
/usr/local/naviserver/logs/access.log
[-conn:amagnatune:0] Debug: ns:interptrace[amagnatune]: allocate ns:tcltrace 
ns_init
[-conn:amagnatune:0] Notice: upload.tcl: /upload.tcl: [-conn:amagnatune:0] Debug: ns:interptrace[amagnatune]: deallocate ns:tcltrace ns_cleanup

Once, I also saw this (but not on repeated runs) which shows the driver debug 
info is being logged:
[-driver:nssock-] Debug(ns:driver): SockRelease: Unable to shutdown socket (9: Bad file descriptor), sock: -1, peer: 64.62.148.4:3361, request:
I'm using Vlad's upload.tcl example, to keep things simple. I'm attaching the 
larger naviserver startup log, in case that helps.

When I set ns_param maxupload 2048000000

the debug log implies the spooler is working correctly, it's just that the 
old-style MIME parser kicks in at the end, using lots of memory:
[-driver:nssock-] Debug: Spooler: 0: started fd=7: 1687742 bytes
[-conn:amagnatune:0] Debug: ns:interptrace[amagnatune]: create nslog:initinterp 
/usr/local/naviserver/logs/access.log
[-conn:amagnatune:0] Debug: ns:interptrace[amagnatune]: allocate ns:tcltrace 
ns_init
[-conn:amagnatune:0] Notice: upload.tcl: /upload.tcl: 778212 1687742
[-conn:amagnatune:0] Debug: ns:interptrace[amagnatune]: deallocate ns:tcltrace 
ns_cleanup
[-conn:amagnatune:0] Debug: ns:interptrace[amagnatune]: allocate ns:tcltrace 
ns_init
[-conn:amagnatune:0] Notice: upload.tcl: /upload.tcl: 1074812 1687742
[-conn:amagnatune:0] Debug: ns:interptrace[amagnatune]: deallocate ns:tcltrace 
ns_cleanup
[-conn:amagnatune:0] Debug: ns:interptrace[amagnatune]: allocate ns:tcltrace 
ns_init
[-conn:amagnatune:0] Notice: upload.tcl: /upload.tcl: 1383236 1687742
[-conn:amagnatune:0] Debug: ns:interptrace[amagnatune]: deallocate ns:tcltrace 
ns_cleanup
[-conn:amagnatune:0] Debug: ns:interptrace[amagnatune]: allocate ns:tcltrace 
ns_init
[-conn:amagnatune:0] Notice: upload.tcl: /upload.tcl: 1687316 1687742
[-conn:amagnatune:0] Debug: ns:interptrace[amagnatune]: deallocate ns:tcltrace 
ns_cleanup
[-spooler0-] Debug: spooling content to file: readahead=1024, filesize=1687743
[-conn:amagnatune:0] Debug: ns:interptrace[amagnatune]: allocate ns:tcltrace 
ns_init
[-conn:amagnatune:1] Debug: ns:interptrace[amagnatune]: create nslog:initinterp 
/usr/local/naviserver/logs/access.log
[-conn:amagnatune:1] Debug: ns:interptrace[amagnatune]: allocate ns:tcltrace 
ns_init
[-conn:amagnatune:0] Debug: ns:interptrace[amagnatune]: deallocate ns:tcltrace 
ns_cleanup
[-conn:amagnatune:1] Notice: upload.tcl: /upload.tcl: [-conn:amagnatune:1] Debug: ns:interptrace[amagnatune]: deallocate ns:tcltrace ns_cleanup

Other question you guys had:

- CVS -- I had previously used the sourceforge CVS from my memory, there wasn't 
a link I followed.  I'm now using the bitbucket source.

- nslog - I added "ns_logctl severity Debug(ns:driver) true" to my config file.

-john


------------------------------------------------------------------------

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july


------------------------------------------------------------------------

_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel

--
Vlad Seryakov
v...@crystalballinc.com
http://www.crystalballinc.com/vlad/
[22/Nov/2009:23:47:39][9428.b13ffb70][-conn:ossweb:0] Notice: upload.tcl: 
/upload.tcl: 64686841 71835606
[22/Nov/2009:23:47:40][9428.af9feb70][-conn:ossweb:2] Notice: upload.tcl: 
/upload.tcl: 64952953 71835606
[22/Nov/2009:23:47:42][9428.b0bfeb70][-conn:ossweb:1] Notice: upload.tcl: 
/upload.tcl: 65225785 71835606
[22/Nov/2009:23:47:43][9428.b13ffb70][-conn:ossweb:0] Notice: upload.tcl: 
/upload.tcl: 65494585 71835606
[22/Nov/2009:23:47:44][9428.af9feb70][-conn:ossweb:2] Notice: upload.tcl: 
/upload.tcl: 65767417 71835606
[22/Nov/2009:23:47:45][9428.b0bfeb70][-conn:ossweb:1] Notice: upload.tcl: 
/upload.tcl: 66051001 71835606
[22/Nov/2009:23:47:46][9428.b13ffb70][-conn:ossweb:0] Notice: upload.tcl: 
/upload.tcl: 66323833 71835606
[22/Nov/2009:23:47:48][9428.af9feb70][-conn:ossweb:2] Notice: upload.tcl: 
/upload.tcl: 66608761 71835606
[22/Nov/2009:23:47:49][9428.b0bfeb70][-conn:ossweb:1] Notice: upload.tcl: 
/upload.tcl: 66884281 71835606
[22/Nov/2009:23:47:50][9428.b13ffb70][-conn:ossweb:0] Notice: upload.tcl: 
/upload.tcl: 67162489 71835606
[22/Nov/2009:23:47:51][9428.af9feb70][-conn:ossweb:2] Notice: upload.tcl: 
/upload.tcl: 67439353 71835606
[22/Nov/2009:23:47:53][9428.b0bfeb70][-conn:ossweb:1] Notice: upload.tcl: 
/upload.tcl: 67718905 71835606
[22/Nov/2009:23:47:54][9428.b13ffb70][-conn:ossweb:0] Notice: upload.tcl: 
/upload.tcl: 67950073 71835606
[22/Nov/2009:23:47:55][9428.af9feb70][-conn:ossweb:2] Notice: upload.tcl: 
/upload.tcl: 68278521 71835606
[22/Nov/2009:23:47:56][9428.b0bfeb70][-conn:ossweb:1] Notice: upload.tcl: 
/upload.tcl: 68516409 71835606
[22/Nov/2009:23:47:58][9428.b13ffb70][-conn:ossweb:0] Notice: upload.tcl: 
/upload.tcl: 68838969 71835606
[22/Nov/2009:23:47:59][9428.af9feb70][-conn:ossweb:2] Notice: upload.tcl: 
/upload.tcl: 69115833 71835606
[22/Nov/2009:23:48:00][9428.b0bfeb70][-conn:ossweb:1] Notice: upload.tcl: 
/upload.tcl: 69392697 71835606
[22/Nov/2009:23:48:01][9428.b13ffb70][-conn:ossweb:0] Notice: upload.tcl: 
/upload.tcl: 69673593 71835606
[22/Nov/2009:23:48:02][9428.af9feb70][-conn:ossweb:2] Notice: upload.tcl: 
/upload.tcl: 69942393 71835606
[22/Nov/2009:23:48:04][9428.b0bfeb70][-conn:ossweb:1] Notice: upload.tcl: 
/upload.tcl: 70217913 71835606
[22/Nov/2009:23:48:05][9428.b13ffb70][-conn:ossweb:0] Notice: upload.tcl: 
/upload.tcl: 70486713 71835606
[22/Nov/2009:23:48:06][9428.af9feb70][-conn:ossweb:2] Notice: upload.tcl: 
/upload.tcl: 70759545 71835606
[22/Nov/2009:23:48:07][9428.b13ffb70][-conn:ossweb:0] Notice: upload.tcl: 
/upload.tcl: 71033721 71835606
[22/Nov/2009:23:48:09][9428.b0bfeb70][-conn:ossweb:1] Notice: upload.tcl: 
/upload.tcl: 71310585 71835606
[22/Nov/2009:23:48:10][9428.b13ffb70][-conn:ossweb:0] Notice: upload.tcl: 
/upload.tcl: 71587449 71835606
[22/Nov/2009:23:48:11][9428.af9feb70][-conn:ossweb:2] Notice: uploaded into 
/tmp/9.qg0jbs, content type = multipart/form-data; 
boundary=---------------------------12217250421068946769873060705

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
naviserver-devel mailing list
naviserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/naviserver-devel

Reply via email to