Add File much slower than FTP, by at least 20 times
Hi, I did some timing of a 1.5MB PDF file to two installs of Zope, one on a local desktop and one on a remote site over a network. Situation A: Zope 2.5.1/Windows on Windows 2000, locally Browsers: Mozilla & IE6 on Windows Situation B: Zope 2.5.1/Solaris on a remote Solaris 2.6 box over a 10Mbit connection Browsers: Mozilla & IE6 on Windows If I FTP to the zope server on port 8021, I can put the 1.5MB file in Zope very quickly. Situation A: 0.8 seconds (approx) Situation B: 1.5 seconds But if I use the "Add" button from the management interface, using either Mozilla or IE6, it takes the following times: Situation A: 35 seconds Situation B: 2 minutes 30 seconds. Remember, this is only a 1.5MB file, transferred locally! How could we speed up uploads when initiated through the web? Where is the bottleneck occurring -- is it in the HTTP transfer? David --- David Elfstrom, P.Eng elfstrom@sten.sunnybrook.utoronto.ca Systems Engineer, Research Computing Sunnybrook & Women's College Health Sciences Centre Rm#S6-20, 2075 Bayview Avenue, Toronto, Canada M4N 3M5 phone: 416-480-6100 x3416 fax: 416-480-5714 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002
David Elfstrom writes:
I did some timing of a 1.5MB PDF file to two installs of Zope, one on a local desktop and one on a remote site over a network.
Situation A: Zope 2.5.1/Windows on Windows 2000, locally Browsers: Mozilla & IE6 on Windows
Situation B:
Zope 2.5.1/Solaris on a remote Solaris 2.6 box over a 10Mbit connection Browsers: Mozilla & IE6 on Windows
If I FTP to the zope server on port 8021, I can put the 1.5MB file in Zope very quickly. Situation A: 0.8 seconds (approx) Situation B: 1.5 seconds
But if I use the "Add" button from the management interface, using either Mozilla or IE6, it takes the following times: Situation A: 35 seconds Situation B: 2 minutes 30 seconds. Are you sure, you use "enctype=multipart/formdata" to your action?
FTP can be slightly more efficient than HTTP. But this order of magnitude is astonishing. I would probably activate profiling (--> "Control_Panel->Debug information -> Profiling) and see where the time is spent. Dieter
participants (2)
-
David Elfstrom -
Dieter Maurer