首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

Node / v8 1gb memory limit

2012-08-13 
Node / v8 1gb memory limit?Node / v8 1gb memory limit?(From google group: nodejs@googlegroup.com)Fr

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?pmSubject:?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 -0700Local:?Tues, Aug 24 2010 6:31?pmSubject:?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 -0700Local:?Tues, Aug 24 2010 6:49?pmSubject:?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.

?

热点排行