问题描述
我是Ruby On Rails的新手,但每次犯了错误(例如在一个函数中),我的电脑(xubuntu 10.10)都完全冻结。
其实我除了等待之外什么都做不了,我终于在5或10分钟后得到了没有内存错误 - >未能分配内存的错误。3和mongoDB。
我从一个有很多宝石的现有项目开发,会有什么后果吗?
可能的诊断:
现在,通过RVM安装红宝石是一种很好的做法:
如果你想测试你的RAM是否坏,试试memtest86:
我会安装RVM。
I'm new in Ruby On Rails but each 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.
这篇关于没有内存错误,未能分配内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!