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个回答

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.

是不是内存溢出了。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问