[v8-users] Running allocation failed - out of memory at 8MB

2014-04-19 Thread Jos Kuijpers
Hi All, Yesterday I implemented a JS module loader in my system when I ran into the out of memory message: *#* *# Fatal error in JS* *# Allocation failed - process out of memory**#* This is when the process uses only 8MB! And when I add some native code causing me to run at 15MB, it crashes

Re: [v8-users] Running allocation failed - out of memory at 8MB

2014-04-19 Thread Ben Noordhuis
On Sat, Apr 19, 2014 at 2:59 PM, Jos Kuijpers j...@kuijpersvof.nl wrote: Hi All, Yesterday I implemented a JS module loader in my system when I ran into the out of memory message: # # Fatal error in JS # Allocation failed - process out of memory # This is when the process uses only 8MB!

Re: [v8-users] Running allocation failed - out of memory at 8MB

2014-04-19 Thread Jos Kuijpers
I like the hunch, but no, it seems not: $ sudo dtruss -n Andromeda -t mmap shows many calls, but no mmap call returning 0x0. It is hard to see when exactly the fatal error comes and with what MMAP that happened. On Saturday, April 19, 2014 3:55:38 PM UTC+2, Ben Noordhuis wrote: On Sat, Apr

Re: [v8-users] Running allocation failed - out of memory at 8MB

2014-04-19 Thread Ben Noordhuis
On Sat, Apr 19, 2014 at 4:16 PM, Jos Kuijpers j...@kuijpersvof.nl wrote: I like the hunch, but no, it seems not: $ sudo dtruss -n Andromeda -t mmap shows many calls, but no mmap call returning 0x0. It is hard to see when exactly the fatal error comes and with what MMAP that happened. mmap

Re: [v8-users] Running allocation failed - out of memory at 8MB

2014-04-19 Thread Jos Kuijpers
All the same: 84258/0x45cd5d: 472 27 13 mmap(0x100058000, 0x14000, 0x5, 0x12, 0x3, 0x0) = 0x100058000 0 84258/0x45cd5d: 479 15 5 mmap(0x10006C000, 0x6000, 0x3, 0x12, 0x3, 0x14000) = 0x10006C000 0 84258/0x45cd5d: 483 13 3 mmap(0x100072000, 0xCB80,

[v8-users] Re: Running allocation failed - out of memory at 8MB

2014-04-19 Thread Jos Kuijpers
Is there anything else I can try, or that could be going on? Any way for me to provide to you more information? On Saturday, April 19, 2014 2:59:02 PM UTC+2, Jos Kuijpers wrote: Hi All, Yesterday I implemented a JS module loader in my system when I ran into the out of memory message: