Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

Adding trace agent uses all of heap #603

@caseyduquettesc

Description

@caseyduquettesc

trace-agent is the only package using "lodash.merge"

I'm using node 8.9.1, latest trace agent, running on appengine flex env.

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory 
      3: baseClone ... 
      2: set(aka mapCacheSet) [/app/node_modules/lodash.merge/index.js:~713] [pc=0x3867669eb473](this=0x69a3b6bd381 <MapCache map = 0x19be35f40529>,key=0x16d9a2750109 <JSArray[2]>,value=0x840806f5d89 <JSArray[2]>) 
      1: set [native collection.js:~149] [pc=0x3867666395e7](this=0x69a3b6bd4b9 <Map map = 0x192b418848d9>,o=0x16d9a2750109 <JSArray[2]>,value=0x840806f5d89 <JSArray[2]>)
 
Security context: 0x38a771425ec1 <JSObject>
 ==== JS stack trace =========================================
<--- JS stacktrace --->
[27:0x34bb040]   711432 ms: Mark-sweep 1402.4 (1436.1) -> 1402.4 (1436.1) MB, 1608.6 / 0.0 ms  last resort GC in old space requested
[27:0x34bb040]   709824 ms: Mark-sweep 1402.4 (1467.1) -> 1402.4 (1436.1) MB, 1554.7 / 0.0 ms  last resort GC in old space requested
[27:0x34bb040]   708269 ms: Mark-sweep 1402.7 (1467.1) -> 1402.4 (1467.1) MB, 1786.4 / 0.0 ms  allocation failure GC in old space requested
<--- Last few GCs --->

Metadata

Metadata

Assignees

Labels

api: cloudtraceIssues related to the googleapis/cloud-trace-nodejs API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions