即使是很小的文件上传停在阿帕奇/轨活动 [英] even small file upload stops activity on apache/rails

查看:138
本文介绍了即使是很小的文件上传停在阿帕奇/轨活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我导轨(2.3.5)的应用程序(目前50-70rpm,围绕0.7S最大响应时间),甚至上传700K的文件(使用回形针插件)锁定为大家2分钟的Web请求的服务器! (在同一台服务器正常工作的其他应用程序)

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)

没有任何人有一个线索,为什么这可能发生?我使用一些MySQL的交易中锁定数据库也正在如果这可能是一个问题。

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

我读 http://www.therailsway.com/2009/4/ 23 /上传,文件
但它不能被锁定2分钟服务器的小文件,可能吗?!

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?!

推荐答案

好,问题显然是一个在文章中 - 钢轨文件上传后锁定。看来,在安装MOD门房固定它。

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:切换到nginx的上传模块,甚至更快。

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

这篇关于即使是很小的文件上传停在阿帕奇/轨活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆