even small file upload stops activity on apache/rails

Posted by Pavel K. on Stack Overflow See other posts from Stack Overflow or by Pavel K.
Published on 2010-04-07T10:22:19Z Indexed on 2010/04/07 10:33 UTC
Read the original article Hit count: 202

Filed under:
|
|
|

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

© Stack Overflow or respective owner

Related posts about rails

Related posts about apache