Closed chrisfleisch closed 11 months ago
Do you know how many files are on the volume? Millions, or billions?
It's a little less than 5 million files. Total size is about 813G.
I was able to get around this error by providing node more than the 2GB of default heap memory. I changed my command to include an env variable for node:
sudo NODE_OPTIONS="--max-old-space-size=16000" snap-to-s3
I then edited index.js to log the heap stats to confirm the setting change:
const v8 = require('node:v8');
console.log(v8.getHeapStatistics());
I've been using snap-to-s3 for the last couple of years with any issues like this. I'm now seeing a JavaScript memory issue on some snapshots during the validation step. I tried increasing the instance size from a c5.large to r5.large, but that didn't seem to help. Do you know what I could do to resolve this issue? There's the full error message: