RenovateOnPrem: 'JavaScript heap out of memory' error #279
Unanswered
JoeJennings
asked this question in
Q&A
Replies: 1 comment
-
Increasing heap space seems like a reasonable trade-off. Without the hosted Renovate App we run Renovate on machines with 3.75GB of memory and I haven't noticed many out of memory incidents or people complaining about it. It would be useful if you are able to get any of the following info:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When RenovateOnPrem (version 2.6.0) is processing a Java component(s) repository that contains 40 pom.xml files that contain over 650+ dependencies a 'JavaScript heap out of memory' error sometimes occurs, about 50% of the time. The linux host RenovateOnPrem is running on has 32GB of memory. When this occurs RenovateOnPrem seems to crash and then restarts. Looking at the host's free memory it averages around 10GB of free memory when Renovate is not processing repositories and around 6GB of free memory when Renovate is processing repositories. With Renovate logging set to 'debug' and observing the logs of multiple occurrences I suspect the issue occurs after Renovate has processed the dependency updates and is creating the pull request updates.
Logs:
Logging into bin/bash on the running RenovateOnPrem docker container and checking the JavaScript (node.js) heap space limit it appears to be 4G, which doesn't seem to be enough when Renovate is processing this repository.
Using the RenovateOnPrem docker-compose.yml and setting the NODE_OPTS environmental variable '--max-old-space-size' to 8GB allows Renovate to process this repository without running into the 'JavaScript heap out of memory' error.
Questions:
Observations:
Beta Was this translation helpful? Give feedback.
All reactions