no memory error, failed to allocate memory

爱⌒轻易说出口 提交于 2019-12-12 01:53:40

问题


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 !


回答1:


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.




回答2:


  1. Update your Ruby version
  2. Run memtest to perform hardware memory test


来源:https://stackoverflow.com/questions/6733814/no-memory-error-failed-to-allocate-memory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!