Memory Issue Failed Frontend Build - exam105/backend GitHub Wiki
Problem Statement
The build failed because the process exited too early. This probably means the system ran out of memory or someone called kill -9 on the process.
Possible solution steps
-
Remove dangling and old images from deployment server
-
Reboot deployment server might be helpful
-
Change in max-old-size can help. Change the value and rebuild.
react-scripts --max-old-space-size=1024 build -
Clean Jenkins log
Remove the durable folder from Jenkins
wrapper script does not seem to be touching the log file in /var/lib/jenkins/workspace/Exam105-FrontEnd@tmp/durable-05949b96 -
GENERATE_SOURCEMAP=falsehttps://stackoverflow.com/questions/62663167/dockerizing-react-in-production-mode-fatal-error-ineffective-mark-compacts-nea