MJ, On Fri, Jun 18, 2010 at 12:48 AM, MJ <[email protected]> wrote: > Does anyone happpen to know what the maximum total heap space that V8 > will use?
Yes. v8 uses several spaces to allocate from and those spaces have limits, so if you hit any of those limits, v8 will report OOM. > This would be the number returned when calling > GetHeapStatistics which in turn calls i::Heap::CommittedMemory. Is > there a maximum for this and what is it? I'd need to check, but generally committed is not the maximum, but rather currently actively in use. > > Mainly is there a maximum cap of system allocated memory that V8 will > not go past? > > I ask this because by the total_heap_space seems to be always > increasing and by calling v8::V8::IdleNotification it seems you can > have the GC reclaim some of that memory. So I am trying to figure out > what is the point when V8 will do this by itself. Because sometimes we'd like to ask v8 to release additional memory sooner than later. That's due to the fact that v8 won't free any memory unless it allocates anything. Therefore if v8 doesn't run for a long time, it won't release any memory, and sometimes it is crucial as even thin v8 wrappers could retain huge objects in WebKit. yours, anton. > > Thanks. > > -- > v8-users mailing list > [email protected] > http://groups.google.com/group/v8-users > -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
