Skip to content

JavaScript heap out of memory #7

@tutorgaming

Description

@tutorgaming

After parsing for a while at 5Hz, I found that after a short period of time the node console was shown these errors.

<--- Last few GCs --->

944243 ms: Mark-sweep 1378.5 (1435.0) -> 1378.5 (1435.0) MB, 2303.3 / 0.0 ms [allocation failure] [GC in old space requested].
946647 ms: Mark-sweep 1378.5 (1435.0) -> 1378.5 (1408.0) MB, 2402.1 / 0.0 ms (+ 1.2 ms in 1 steps since start of marking, biggest step 1.2 ms) [last resort gc].
949042 ms: Mark-sweep 1378.5 (1408.0) -> 1378.5 (1408.0) MB, 2394.5 / 0.0 ms [last resort gc].

<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0x506fe8cfb39
1: inspect(aka inspect) [util.js:180] [pc=0x29d06c540595] (this=0x506fe804381 ,obj=73,opts=0x506fe804381 )
2: arguments adaptor frame: 1->2
3: /* anonymous /(aka / anonymous */) [util.js:~65] [pc=0x29d06c7164e7] (this=0x506fe804201 ,f=73)
4: log [console.js:~42] [pc=0x29d06c51af96] (this=0x2188d448aab1 <a Console with map 0x2bfbfabab1a1>)
5: argu...

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
1: node::Abort() [/usr/local/bin/node]
2: node::FatalException(v8::Isolate*, v8::Localv8::Value, v8::Localv8::Message) [/usr/local/bin/node]
3: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/usr/local/bin/node]
4: v8::internal::Factory::NewTransitionArray(int) [/usr/local/bin/node]
5: v8::internal::TransitionArray::Insert(v8::internal::Handlev8::internal::Map, v8::internal::Handlev8::internal::Name, v8::internal::Handlev8::internal::Map, v8::internal::SimpleTransitionFlag) [/usr/local/bin/node]
6: v8::internal::Map::CopyReplaceDescriptors(v8::internal::Handlev8::internal::Map, v8::internal::Handlev8::internal::DescriptorArray, v8::internal::Handlev8::internal::LayoutDescriptor, v8::internal::TransitionFlag, v8::internal::MaybeHandlev8::internal::Name, char const*, v8::internal::SimpleTransitionFlag) [/usr/local/bin/node]
7: v8::internal::Map::CopyAddDescriptor(v8::internal::Handlev8::internal::Map, v8::internal::Descriptor*, v8::internal::TransitionFlag) [/usr/local/bin/node]
8: v8::internal::Map::CopyWithField(v8::internal::Handlev8::internal::Map, v8::internal::Handlev8::internal::Name, v8::internal::Handlev8::internal::FieldType, v8::internal::PropertyAttributes, v8::internal::Representation, v8::internal::TransitionFlag) [/usr/local/bin/node]
9: v8::internal::Map::TransitionToDataProperty(v8::internal::Handlev8::internal::Map, v8::internal::Handlev8::internal::Name, v8::internal::Handlev8::internal::Object, v8::internal::PropertyAttributes, v8::internal::Object::StoreFromKeyed) [/usr/local/bin/node]
10: v8::internal::LookupIterator::PrepareTransitionToDataProperty(v8::internal::Handlev8::internal::JSObject, v8::internal::Handlev8::internal::Object, v8::internal::PropertyAttributes, v8::internal::Object::StoreFromKeyed) [/usr/local/bin/node]
11: v8::internal::Object::AddDataProperty(v8::internal::LookupIterator*, v8::internal::Handlev8::internal::Object, v8::internal::PropertyAttributes, v8::internal::Object::ShouldThrow, v8::internal::Object::StoreFromKeyed) [/usr/local/bin/node]
12: v8::internal::Runtime::SetObjectProperty(v8::internal::Isolate*, v8::internal::Handlev8::internal::Object, v8::internal::Handlev8::internal::Object, v8::internal::Handlev8::internal::Object, v8::internal::LanguageMode) [/usr/local/bin/node]
13: v8::internal::Builtin_Impl_ObjectAssign(v8::internal::(anonymous namespace)::BuiltinArguments<(v8::internal::BuiltinExtraArguments)0>, v8::internal::Isolate*) [/usr/local/bin/node]
14: v8::internal::Builtin_ObjectAssign(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/local/bin/node]
15: 0x29d06c3092a7
16: 0x29d06c540595
17: 0x29d06c309895
18: 0x29d06c7164e7
[1] 8715 abort node index.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions