2 quit326575 quit326575 于 2015.06.30 15:24 提问

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   Ds   Rxr 2015.07.01 12: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.

是不是内存溢出了。

Csdn user default icon
上传中...
上传图片
插入图片