没有内存错误,未能分配内存 [英] no memory error, failed to allocate memory

查看:180
本文介绍了没有内存错误,未能分配内存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Ruby On Rails的新手,但每次犯了错误(例如在一个函数中),我的电脑(xubuntu 10.10)都完全冻结。

其实我除了等待之外什么都做不了,我终于在5或10分钟后得到了没有内存错误 - >未能分配内存的错误。



3和mongoDB。



我从一个有很多宝石的现有项目开发,会有什么后果吗?


解决方案

可能的诊断:


  • 您正在使用从ubuntu软件包安装的Ruby

  • 您的物理内存不足



现在,通过RVM安装红宝石是一种很好的做法: http://beginrescueend.com/



如果你想测试你的RAM是否坏,试试memtest86: http:// www .memtest86.com /



我会安装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.

这篇关于没有内存错误,未能分配内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆