[英]no memory error, failed to allocate memory
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.我是 Ruby On Rails 的新手,但每次我犯错误(例如在 function 中),我的电脑(xubuntu 10.10)都会完全死机。
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.实际上我除了等待什么都做不了,我终于在 5 或 10 分钟后得到了“No memory 错误 -> 分配内存失败”错误。
I use rails 3 and mongoDB.我使用导轨 3 和 mongoDB。
I'm developping from an existing project with many gems, is there any consequences?我正在从具有许多宝石的现有项目中进行开发,有什么后果吗?
Thank you !谢谢 !
Possible diagnosis:可能的诊断:
These days it's good practice to install your rubies through RVM: http://beginrescueend.com/如今,通过 RVM 安装红宝石是一种很好的做法: http://beginrescueend.com/
If you want to test if you RAM is bad try memtest86: http://www.memtest86.com/如果您想测试您的 RAM 是否坏,请尝试 memtest86: http://www.memtest86.com/
I'd go with installing RVM.我会 go 安装 RVM。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.