no memory error, failed to allocate memory

2019-09-05 06:49发布

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 !

2条回答
够拽才男人
2楼-- · 2019-09-05 07:29
  1. Update your Ruby version
  2. Run memtest to perform hardware memory test
查看更多
爷、活的狠高调
3楼-- · 2019-09-05 07:33

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.

查看更多
登录 后发表回答