# large file upload crash rails app

**URL:** <https://discuss.rubyonrails.org/t/large-file-upload-crash-rails-app/6530>\
**Category:** rubyonrails-talk\
**Created:** [December 30, 2006, 10:19pm UTC](https://discuss.rubyonrails.org/t/large-file-upload-crash-rails-app/6530 "2006-12-30T22:19:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elad\_Meidar](https://avatars.discourse-cdn.com/v4/letter/e/bcef8e/32.png) [@Elad\_Meidar](https://discuss.rubyonrails.org/u/Elad_Meidar)\
**Post date:** [December 30, 2006, 10:19pm UTC](https://discuss.rubyonrails.org/t/large-file-upload-crash-rails-app/6530/1 "2006-12-30T22:19:39Z")

</div>

Hi Truong,

Please paste your exception details, it is very hard to guess (maybe Zed Shaw can do some telepathic assistance, i heard he can do anything regarding rails 🙂 )

---

<div class="post-metadata">

**Author:** ![Jakob\_Skjerning](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@Jakob\_Skjerning](https://discuss.rubyonrails.org/u/Jakob_Skjerning)\
**Post date:** [December 31, 2006, 6:17pm UTC](https://discuss.rubyonrails.org/t/large-file-upload-crash-rails-app/6530/2 "2006-12-31T18:17:15Z")

</div>

Truong-an Thai wrote:

> Hi, production.log and fastcgi.crash.log doesn't show anything.
> 
> however, while logging in via ssh shell, I noticed this:
> 
> RMagick: Memory allocation failed `Cannot allocate memory'.
> 
> Any suggestions?

My best guess would be to add some more RAM to the machine. Or in some other way make more memory available to the process.

---

<div class="post-metadata">

**Author:** ![Peter\_De\_Berdt](https://avatars.discourse-cdn.com/v4/letter/p/53a042/32.png) [@Peter\_De\_Berdt](https://discuss.rubyonrails.org/u/Peter_De_Berdt)\
**Post date:** [January 1, 2007, 1:01pm UTC](https://discuss.rubyonrails.org/t/large-file-upload-crash-rails-app/6530/3 "2007-01-01T13:01:39Z")

</div>

The problem with shared hosts is that your memory is limited. As soon as you go over a certain treshold, it just terminates your processes. I’m having similar problems with uploads and even downloads via send\_file on a2hosting’s servers. The shell also reads: out of memory, my processes are all killed (including mongrel, the site goes offline) and a core file is dumped. The same application runs without a problem on our VPS or dedicated server.

Best regards

Peter De Berdt
