Dossy,
Thanks for your response.
I have tested both the latest version of AOLServer (3.4.2 without
ArsDigita's ACS+patches) and AOLServer3.3.1+ad13+ACS4.2 (using nsd8x) and
the results are the same.
I am running AOLServer+Oracle 8.1.6EE on a SUN Ultra1 (167MHz, 512MB RAM --
enough free memory to avoid disk swapping) using SUN Solaris 8. I am
connecting to the server from a Pentium III 733MHz 512MB RAM PC, running
WinNT4 SP6a. Both the server and the PC are connected to a 100Mbit/sec full
duplex ethernet switch.
I am uploading using HTTP POST multipart/form-date. I am testing using the
following ADP page:
<HTML>
<HEAD>
<TITLE>Test File Upload</TITLE>
</HEAD>
<BODY>
<form enctype=multipart/form-data method=post
action="<%=[ns_conn url]%>">
<input name=file type=file>
<input name=submit type=submit value="submit">
</form>
<%
if { [ns_conn method]=="POST" } {
set fn [ns_tmpnam]
set fd [open ${fn}.headers w]
set headers [ns_conn headers]
for {set i 0; set n [ns_set size $headers]} {$i < $n}
{incr i} {
puts $fd "[ns_set key $headers $i]: [ns_set value
$headers $i]"
}
close $fd
set fd [open ${fn}.body w]
fconfigure $fd -translation binary
set t1 [time {ns_conncptofp $fd}]
close $fd
ns_return 200 text/plain "headers in ${fn}.headers
body in ${fn}.body
Time to write content to file: $t1
"
}
%>
</body>
</html>
Even if HTTP POST ends-up sending 7000KB, I think 30 secs is rather
excessive. Furthermore, I find it strange that the IOBufSize parameter has
no impact on file upload performance.
Any ideas?
Thank you,
Simos.