# NoMemoryError: failed to allocate memory

**URL:** <https://www.ruby-forum.com/t/nomemoryerror-failed-to-allocate-memory/139378>\
**Category:** Rails\
**Created:** [June 3, 2008, 11:38am UTC](https://www.ruby-forum.com/t/nomemoryerror-failed-to-allocate-memory/139378 "2008-06-03T11:38:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnAnAn](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/97f17d/32.png) [@AnAnAn](https://www.ruby-forum.com/u/AnAnAn)\
**Post date:** [June 3, 2008, 11:38am UTC](https://www.ruby-forum.com/t/nomemoryerror-failed-to-allocate-memory/139378/1 "2008-06-03T11:38:34Z")

</div>

Hi,  
I’m using daemons to control a script that should always run on  
background in my development server. But, when I start the script it,  
returns this error:

\<MissingSourceFile: no such file to load – fast\_xs\>  
\<NoMemoryError: failed to allocate memory\>  
[…]

The script itself runs anyway, but failing to start threads (I use a  
threadpool with a low number of threads and I have a begin …  
resume … block that makes the script run anyway).  
Actually the thing is driving me crazy is that this error happens only  
when I “start” the daemon (e.g. ruby script/my\_daemon start);  
everything is ok if instead of starting it I “run” it (e.g. ruby  
script/my\_daemon run).

Any suggestion?
