Heapdump issue when retrieving query #1141
-
Greetings, I execute: This results int he following error. How do I go about resolving this? I am running the tool on a GCP Compute Engine VM. `<--- Last few GCs ---> [4573:0x7538a30] 161967 ms: Mark-Compact 1794.6 (2085.6) -> 1788.2 (2080.1) MB, 1640.90 / 0.00 ms (average mu = 0.107, current mu = 0.012) allocation failure; scavenge might not succeed <--- JS stacktrace ---> FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 11 replies
-
hi @garysandler The relevant error message seems to be You were trying to download queries which also retrieves folders and dataExtensions to be able to resolve dependencies. My guess is, that your process wasn't allocated enough RAM to do this. I would try to beef it up a little and check if the error disappears. |
Beta Was this translation helpful? Give feedback.
-
The region could be an issue, I haven’t investigated too deep into that at this point. I know the GCP region is in the US-central. My client is in the Middle East but I have not confirmed what region their SFMC instance is in.
Just to give an idea of the volumes, the retrieve folder for the parent BU is approx. 2.8GB.
There are around 9000 queries (many of the most unwieldly sql imaginable hundreds/thousands of lines long), 20k data extensions, I didn’t try count the asset folder where which was by far the largest.
|
Beta Was this translation helpful? Give feedback.
-
You’re right – the environment is polluted with historically versioned, unused, non-working objects.
What I am getting the client to realize with mcdev and git is that they don’t need keep so much bloat on SFMC.
Between the Marketing teams / SFMC developers/admins and Salesforce themselves they have never considered leveraging a version control repo and deployment pipeline. Or even a basic cleanup for that matter.
Therefore they have 2.8GB on a single BU!
|
Beta Was this translation helpful? Give feedback.
-
The tool is fantastic. Being command line based I could immediately see the potential.
I’d be happy to chat offline and share how this tool solves some of the clients biggest challenges in this space.
|
Beta Was this translation helpful? Give feedback.
hi @garysandler
I haven't personally set this up on GCP and the logs you provided seem to be generated by the server, not by mcdev. Therefore, expectation management: The following will be an educated guess but I certainly don't know this for sure nor can I provide adequate support for GCP in general.
The relevant error message seems to be
JavaScript heap out of memory
.You were trying to download queries which also retrieves folders and dataExtensions to be able to resolve dependencies. My guess is, that your process wasn't allocated enough RAM to do this. I would try to beef it up a little and check if the error disappears.