Node / v8 1gb memory limit?

Node / v8 1gb memory limit?
(From google group: nodejs@googlegroup.com)

From:  Bert Belder <bertbel...@gmail.com>
Date:  Tue, 24 Aug 2010 15:29:25 -0700 (PDT)
Local:  Tues, Aug 24 2010 6:29 pm
Subject:  Node / v8 1gb memory limit?

For some reason my node application never uses more than 1 GB of
memory. When node's memory usage approaches 1GB long freezes start to
happen (I presume due to garbage collection), and after a while node
either dies with an out of memory error or freezes indefinitely.

I'm running 64-bit Ubuntu with around 3GB of physical memory free and
a ton of swap space available, so there's plenty left when this
problem occurs.

The only way to cross the 1GB boundary seems to be allocating big
buffers. However memory consumption is not a goal in itself :-) and in
my application using buffers is not an option.

Is the 1GB barrier something built-in to node or V8?
Do other people have similar experiences?

- Bert


 

From:  Timothy Caswell <t...@creationix.com>
Date:  Tue, 24 Aug 2010 15:31:33 -0700
Local:  Tues, Aug 24 2010 6:31 pm
Subject:  Re: [nodejs] Node / v8 1gb memory limit?

I've seen the same thing.  Like you said, buffers can eat tons of ram.  I've had an app using 13gb of buffer space and keep on trucking.  I too would like to know the limits here.



From:  Vitali Lovich <vlov...@gmail.com>
Date:  Tue, 24 Aug 2010 15:49:53 -0700
Local:  Tues, Aug 24 2010 6:49 pm
Subject:  Re: [nodejs] Node / v8 1gb memory limit?

I suspect that's a question for the v8 folk.  I think the best way may be to
create a simple v8 test case that allocates 1gb+ of an array.

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值