quit326575
quit326575
采纳率0%
2015-06-30 07:24 浏览 1.6k

mongodb db.eval异常问题

平台使用的是SUSE11 ,mongodb版本为2.6.6,创建collection正常,写入简单的js函数
function process()
{
return '1111';
}
在shell内执行出现异常
db.eval('process()');
mongodb自动断开,服务提示为:

Fatal error in v8::Context::New()
V8 is no longer usable

难道是suse上的V8引擎有问题?如何处理呢/

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答 默认 最新

  • oyljerry oyljerry 2015-07-01 04:32

    Hi, this is not so much of an issue, but if you write your app such that new v8 objects are continuously created, be warned that ones you've finished dealing with are not garbage-collected, creating a memory leak which eventually leads to the error stated in the title. My uneducated guess is that it has to do with Ruby and JavaScript objects holding mutual cyclic references.

    是不是内存溢出了。

    点赞 评论 复制链接分享

相关推荐