Are you running the 64 bit version of V8? file `which v8`
You need to use --arch=x64 when building to get the 64 bit version. 25. aug. 2010 09.26 skrev Bert Belder <[email protected]>: > For some reason I am unable to use more than 1 GB of memory. > As the memory usage approaches 1GB my program becomes slower and > slower, then dies with an out of memory error. > > A simple test case looks like: > > var a = [], i = 0, s = ''; > while (true) { > s = a[i++] = s + i; > } > > The system I'm using runs 64-bit Ubuntu with around 3GB of physical > memory free and a ton of swap space available, so there's plenty left > when v8 runs into trouble. > > I know about the --max_old_space_size flag; however setting it to > something over 1GB (like 2000000000) doesn't help. Is there anything > (else) I can do? > > - Bert > > -- > v8-users mailing list > [email protected] > http://groups.google.com/group/v8-users > -- Erik Corry, Software Engineer Google Denmark ApS - Frederiksborggade 20B, 1 sal, 1360 København K - Denmark - CVR nr. 28 86 69 84 -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
