Do v8 have common upper bound of memory?

50 views
Skip to first unread message

kunjie Chen

unread,
Jul 29, 2015, 2:54:29 AM7/29/15
to v8-users

Hi, all
     I am using v8-3.30.10 as a server, and create lots of v8 Isolate in a multi-thread environment. 

The machine I using is linux with a 64GB memory.

With the program runs, it use already 38GB memory. 

Then when it creates a new Isolate and try to Compile a new Script, the program crashes. The crashes Information as below

#0  0x0000000000894689 in v8::base::OS::Abort() ()
#1  0x0000000000464ba5 in v8::Utils::ReportApiFailure(char const*, char const*) ()
#2  0x0000000000464d9d in v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) ()
#3  0x00000000004fd448 in v8::internal::Factory::NewFixedArray(int, v8::internal::PretenureFlag) ()
#4  0x000000000066b893 in v8::internal::HashTable<v8::internal::StringTable, v8::internal::StringTableShape, v8::internal::HashTableKey*>::New(v8::internal::Isolate*, int, v8::internal::MinimumCapacity, v8::internal::PretenureFlag) ()
#5  0x000000000066c1d0 in v8::internal::HashTable<v8::internal::StringTable, v8::internal::StringTableShape, v8::internal::HashTableKey*>::EnsureCapacity(v8::internal::Handle<v8::internal::StringTable>, int, v8::internal::HashTableKey*, v8::internal::PretenureFlag) ()
#6  0x000000000066c2a6 in v8::internal::StringTable::LookupKey(v8::internal::Isolate*, v8::internal::HashTableKey*) ()
#7  0x00000000007a0d2d in v8::internal::AstRawString::Internalize(v8::internal::Isolate*) ()
#8  0x00000000007a1932 in v8::internal::AstValueFactory::Internalize(v8::internal::Isolate*) ()
#9  0x00000000006956b4 in v8::internal::Parser::Internalize() ()
#10 0x00000000006aa5da in v8::internal::Parser::Parse() ()
#11 0x00000000004b3805 in v8::internal::Parser::Parse(v8::internal::CompilationInfo*, bool) ()
#12 0x00000000004b3d1d in v8::internal::CompileToplevel(v8::internal::CompilationInfo*) ()
#13 0x00000000004b8262 in v8::internal::Compiler::CompileScript(v8::internal::Handle<v8::internal::String>, v8::internal::Handle<v8::internal::Object>, int, int, bool, v8::internal::Handle<v8::internal::Context>, v8::Extension*, v8::internal::ScriptData**, v8::ScriptCompiler::CompileOptions, v8::internal::NativesFlag) ()
#14 0x000000000046b42d in v8::ScriptCompiler::CompileUnbound(v8::Isolate*, v8::ScriptCompiler::Source*, v8::ScriptCompiler::CompileOptions) ()
#15 0x000000000046bb27 in v8::Script::Compile(v8::Handle<v8::String>, v8::ScriptOrigin*) ()

Is it a bug?   Or the v8 system itself has the limit of the memory use??
Reply all
Reply to author
Forward
0 new messages