Skip to content

Commit

Permalink
Increase node's heap limit
Browse files Browse the repository at this point in the history
  • Loading branch information
imjoshin committed Feb 14, 2022
1 parent cd75fc6 commit 12ba91b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions benchmarks/memory/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ ENV GATSBY_CPU_COUNT=4
RUN apt-get update -y && apt-get upgrade -y && apt-get install git curl npm -y
RUN npm i -g gatsby-cli gatsby-dev-cli

# set heap to 16gb just to catch all test cases
ENV NODE_OPTIONS="--max-old-space-size=16368"

# RUN apt-get update && apt-get install -y \
# libjemalloc-dev=5.1.0-3

Expand Down
2 changes: 0 additions & 2 deletions benchmarks/memory/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ if (match.length > 2 && suffixSizes.indexOf(match[2]) >= 0) {
}
const LARGE_FIELD_SIZE = parseInt(match[1], 10) * bytesMultiplier;

console.log({NUM_KEYS_IN_LARGE_SIZE_OBJ, LARGE_FIELD_SIZE, NUM_NODES})


exports.sourceNodes = async ({ actions, reporter }) => {
const contentDigest = Date.now().toString() // make each sourcing mark everything as dirty
Expand Down

0 comments on commit 12ba91b

Please sign in to comment.