Sorry about that, here are those details: Ubuntu server 14.04.01 CPU: Intel Xenon X5660 @ 2.80Ghz (dual core) RAM: 8GB
The last file i tested was 50MB (web2py should be able to handle up to 2GB?) Here are the models and controllers: db.define_table('mytable', Field('file','upload')) def upload_test(): form=SQLFORM(db.mytable).process() return dict(form=form) def download(): return response.download(request,db) Also worth noting, it does NOT bog down the server if i download the file through the admin panel over https: https://.../appadmin/download/db/mytable.file.b8a8b0d7e3766c74.355f45465f3037323731355f4e4f544553203030312e746966.pdf but it does become unresponsive (until finished) if i upload through admin panel: https://../appadmin/insert/db/mytable Let me know if you need any other details. The server doesn't seem to be maxing out on CPU on memory usage during the file transfer (watching top processes in linux). Thanks for your quick response! Dave On Wednesday, July 29, 2015 at 2:52:20 AM UTC-6, Niphlod wrote: > > uhm, you left out some pretty specific details.... what resources has the > server web2py is deployed on ? moreover, what's the size of the file ? and > what code are you using to handle the upload? are you using the default > 'upload' Field or is it in conjunction with a 'blob' one to store the file > on the database ? > > On Wednesday, July 29, 2015 at 4:59:29 AM UTC+2, Dave wrote: >> >> >> I have this same behavior on multiple web2py servers. If a large file is >> being uploaded using a SQLFORM or downloaded using the default download >> controller, over HTTPS, the entire web server becomes unresponsive until >> the transfer is completed or cancelled. However, I have no issues >> uploading/downloading the same file over HTTP, which can also take several >> minutes to complete, but the web server is still responsive during those >> transfers. >> >> I am using the one-step deployment with Apache and a wildcard certificate >> (RapidSSL). Would switching to nginx or cherokee give better performance >> for https file transfers, or is this likely an issue with the SSL >> certificate format? Or if the file transfers over HTTPS are too CPU >> intensive, am i better off setting up multiple servers and a load balancer? >> >> Thanks! >> Dave R >> >> >> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.