平台使用的是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引擎有问题?如何处理呢/
平台使用的是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引擎有问题?如何处理呢/
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.
是不是内存溢出了。