Web programmers' advice needed- the plot thickens.
Now it's become a full fledge war between me and the network people:
Here are the data using a 65MB document as test. Production server on domain A, Development server (my laptop) on its own workgroup.
Launching request from users' PCs that are in same domain as Production server.
Production server: Web app transfer = 24 minutes.
Production server: Webshare (no code) transfer = 12 sec
Development server: Web app transfer = 15 sec
Development server: Webshare (no code) transfer = 15 sec
Launching request from Internet Explorer on Development server:
Production server: Web app transfer = 24 minutes.
Production server: Webshare (no code) transfer = 12 sec
Development server using IP addressed assigned to server = 35 minutes
Development server using localhost as address = 12 sec
Launching request from Internet Explorer on Production server:
Production server: Web app transfer 6 sec
Production server: Webshare transfer 6 sec
Development server: Web app transfer 15 sec
Development server: Webshare transfer 15 sec
I told the network people that some thing is throttling the connection and that the code doesn't seem to put much of a performance penalty on the transfer. My users claim that this slow down just occurs in the last 2 weeks.
The network guys contended that on user to production server connection since the webshare speed is still good, it must be the codes. I think some things goes deeper than that because if the code is causing it then how come the same code run lightning fast on my development server that is just a lowly laptop.
I have an Asp.Net application that manages documents for my users. When an user asks for a file I send the file to the user using the follow code:
Dim fileStream As System.IO.Stream
Try
Dim fileBuffer(100000) As Byte
Dim fileLength As Integer
Dim dataToRead As Long
fileStream = New System.IO.FileStream(sTempFileName, System.IO.FileMode.Open, IO.FileAccess.Read, IO.FileShare.Read)
dataToRead = fileStream.Length
Response.ContentType = "application/octet-stream"
Response.AddHeader("Content-Disposition", "attachment; filename=""" & dsDocFile.Tables("tbl_DocFile").Rows.Find(FileID). Item("FileName") & """")
While dataToRead > 0
If Response.IsClientConnected Then
fileLength = fileStream.Read(fileBuffer, 0, 100000)
Response.OutputStream.Write(fileBuffer, 0, fileLength)
Response.Flush()
ReDim fileBuffer(100000)
dataToRead = dataToRead - fileLength
Else
dataToRead = -1
End If
End While
Catch ex As Exception
Response.Write("Error: " & ex.Message)
Finally
If IsNothing(fileStream) = False Then
fileStream.Close()
End If
Response.Close()
End Try
Using the above method, the file transfer is more than 15-20 times slower than what I would get if I simply have a webshare to the same file. I expect some performance loss but should it be that much? Since webshare on a large scale is a big no no, I have to find out what causes the performance loss.
Hey everyone,
I just wanted to let you guys know that on Wednesday May 22nd, at 2pm Mountain time there will be a special chat going on on Twitter about power tools. I know some of you are on...
We would always go for the older delta, they seem to be the best quality. Watch out for their new stuff, have heard mixed reviews. But 500 used is a bit steep, make an offer. One thing we all have...
Just yesterday, we used clamps after glue simply to take the bow out of the wood we were using, and it straightened everything out for us. Usually though, any time you lay up a project the clamps are...
Bookmarks