I'm new in Ruby On Rails but eac开发者_开发技巧h time I make a mistake (in a function for instance), my computer (xubuntu 10.10) totally freezes.
Actually I can't do anything except waiting and I finally got an "No memory error -> failed to allocate memory" error after 5 or 10 minutes.
I use rails 3 and mongoDB.
I'm developping from an existing project with many gems, is there any consequences ?
Thank you !
Possible diagnosis:
- you are using Ruby installed from ubuntu packages
- you have bad physical ram
These days it's good practice to install your rubies through RVM: http://beginrescueend.com/
If you want to test if you RAM is bad try memtest86: http://www.memtest86.com/
I'd go with installing RVM.
- Update your Ruby version
- Run memtest to perform hardware memory test
精彩评论