even small file upload stops activity on apache/rails

廉价感情. 提交于 2019-12-24 09:24:25

问题


on my rails(2.3.5) app(currently 50-70rpm, maximum response time around 0.7s), uploading even 700k file(using paperclip plugin) locks up the server for web requests for everyone for 2 minutes! (other apps on same server work normally)

does anyone have a clue why that might be happening? i am using some mysql transactions which lock the database also if that might be an issue

i read http://www.therailsway.com/2009/4/23/uploading-files but it couldn't be locking server for 2 minutes for a small file, could it?!


回答1:


well, obviously the problem was the one in the article - rails locking up after a file upload. seems that installing mod porter fixed it.

upd:switched to nginx upload module which is even faster.



来源:https://stackoverflow.com/questions/2591574/even-small-file-upload-stops-activity-on-apache-rails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!