Dear Marc, For what it's worth, the DSpace GitHub CI workflows use 4096MB, so this should be enough:
NODE_OPTIONS="--max-old-space-size=4096" npm run build:prod Also note that officially you should be using NPM v10 to build. That will reduce some of the warnings printed during the process. We will probably switch to a newer NPM from DSpace 11 (see: https://github.com/DSpace/dspace-angular/issues/6245). Regards, On Mon, Sep 14, 2026 at 8:56 AM [email protected] < [email protected]> wrote: > > FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed > - JavaScript heap out of memory > > "out of memory" should be the current problem Try running the build like > this (change 8192 to suit your system / the needed memory), to increase the > available memory for the build process: > > NODE_OPTIONS="--max-old-space-size=8192" npm run build:prod > > Marc GOOVAERTS schrieb am Freitag, 11. September 2026 um 19:19:06 UTC+2: > >> When running the build command it is aborted. What can be the problem? >> node --version: v24.21.0 >> npm --version: 11.19.0 >> >> These are the messages in my terminal: >> marc@marc:~/Downloads/dspace-angular-dspace-10.0$ npm install >> npm warn deprecated [email protected]: This module is not supported, and >> leaks memory. Do not use it. Check out lru-cache if you want a good and >> tested way to coalesce async requests by a key value, which is much more >> comprehensive and powerful. >> npm warn deprecated [email protected]: Rimraf versions prior to v4 are no >> longer supported >> npm warn deprecated [email protected]: Rimraf versions prior to v4 are no >> longer supported >> npm warn deprecated [email protected]: Glob versions prior to v9 are no longer >> supported >> npm warn deprecated [email protected]: Glob versions prior to v9 are no longer >> supported >> npm warn deprecated [email protected]: Glob versions prior to v9 are no longer >> supported >> npm warn deprecated [email protected]: Glob versions prior to v9 are no longer >> supported >> npm warn deprecated [email protected]: Package moved to >> @redux-devtools/extension. >> npm warn deprecated [email protected]: Please use >> @jridgewell/sourcemap-codec instead >> npm warn deprecated [email protected]: Please upgrade to version 7 or >> higher. Older versions may use Math.random() in certain circumstances, >> which is known to be problematic. See https://v8.dev/blog/math-random >> for details. >> npm warn deprecated [email protected]: Please upgrade to version 7 or >> higher. Older versions may use Math.random() in certain circumstances, >> which is known to be problematic. See https://v8.dev/blog/math-random >> for details. >> npm warn deprecated [email protected]: uuid@10 and below is no longer >> supported. For ESM codebases, update to uuid@latest. For CommonJS >> codebases, use uuid@11 (but be aware this version will likely be >> deprecated in 2028). >> npm warn deprecated @material-ui/[email protected]: Material UI v4 doesn't >> receive active development since September 2021. See the guide >> https://mui.com/material-ui/migration/migration-v4/ to upgrade to v5. >> npm warn deprecated @material-ui/[email protected]: Material UI v4 >> doesn't receive active development since September 2021. See the guide >> https://mui.com/material-ui/migration/migration-v4/ to upgrade to v5. >> npm warn deprecated [email protected]: react-beautiful-dnd is now >> deprecated. Context and options: >> https://github.com/atlassian/react-beautiful-dnd/issues/2672 >> npm warn deprecated @material-ui/[email protected]: Material UI v4 doesn't >> receive active development since September 2021. See the guide >> https://mui.com/material-ui/migration/migration-v4/ to upgrade to v5. >> >> > [email protected] postinstall >> > npm run build:lint || echo 'Skipped DSpace ESLint plugins.' >> >> >> > [email protected] build:lint >> > rimraf --glob 'lint/dist/**/*.js' 'lint/dist/**/*.js.map' && tsc -b >> lint/tsconfig.json >> >> >> added 1751 packages, and audited 1754 packages in 20s >> >> 379 packages are looking for funding >> run `npm fund` for details >> >> 75 vulnerabilities (4 low, 36 moderate, 32 high, 3 critical) >> >> To address issues that do not require attention, run: >> npm audit fix >> >> To address all issues (including breaking changes), run: >> npm audit fix --force >> >> Run `npm audit` for details. >> npm warn install-scripts 7 packages have install scripts not yet covered >> by allowScripts: >> npm warn install-scripts [email protected] (postinstall: node install.js) >> npm warn install-scripts @parcel/[email protected] (install: node >> scripts/build-from-source.js) >> npm warn install-scripts [email protected] (postinstall: node -e >> "try{require('./postinstall')}catch(e){}") >> npm warn install-scripts [email protected] (postinstall: node >> dist/index.js --exec install) >> npm warn install-scripts [email protected] (postinstall: node install.js) >> npm warn install-scripts [email protected] (install: >> node-gyp-build-optional-packages) >> npm warn install-scripts [email protected] (install: >> node-gyp-build-optional-packages) >> npm warn install-scripts >> npm warn install-scripts Run `npm install-scripts ls` to review, or `npm >> install-scripts approve <pkg>` to allow. >> marc@marc:~/Downloads/dspace-angular-dspace-10.0$ npm run build:prod >> >> > [email protected] build:prod >> > cross-env NODE_ENV=production npm run build:ssr >> >> >> > [email protected] build:ssr >> > ng build --configuration production && ng run >> dspace-angular:server:production >> >> ⠴ Generating browser application bundles (phase: building)... >> <--- Last few GCs ---> >> >> [15014:0xc382000] 114101 ms: Scavenge (interleaved) 2031.2 (2055.2) -> >> 2025.7 (2055.4) MB, pooled: 0 MB, 8.46 / 0.00 ms (average mu = 0.289, >> current mu = 0.254) allocation failure; >> [15014:0xc382000] 114843 ms: Mark-Compact (reduce) 2033.2 (2056.2) -> >> 2024.5 (2040.7) MB, pooled: 0 MB, 82.43 / 0.00 ms (+ 591.2 ms in 117 steps >> since start of marking, biggest step 8.3 ms, walltime since start of >> marking 742 ms) (average mu = 0.288, c >> FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed >> - JavaScript heap out of memory >> ----- Native stack trace ----- >> >> 1: 0x931db0 [ng build --configuration production (dspace-angular)] >> 2: 0x75968e node::OOMErrorHandler(char const*, v8::OOMDetails const&) >> [ng build --configuration production (dspace-angular)] >> 3: 0xc70d60 [ng build --configuration production (dspace-angular)] >> 4: 0xc70e4f [ng build --configuration production (dspace-angular)] >> 5: 0xf14725 [ng build --configuration production (dspace-angular)] >> 6: 0xf14752 [ng build --configuration production (dspace-angular)] >> 7: 0xf14a4a [ng build --configuration production (dspace-angular)] >> 8: 0xf2574a [ng build --configuration production (dspace-angular)] >> 9: 0xf29af0 [ng build --configuration production (dspace-angular)] >> 10: 0x19c77d1 [ng build --configuration production (dspace-angular)] >> Aborted (core dumped) >> > -- > All messages to this mailing list should adhere to the Code of Conduct: > https://lyrasis.org/code-of-conduct/ > --- > You received this message because you are subscribed to the Google Groups > "DSpace Technical Support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion visit > https://groups.google.com/d/msgid/dspace-tech/6df4124d-28b8-4231-a49f-68495c455a3bn%40googlegroups.com > <https://groups.google.com/d/msgid/dspace-tech/6df4124d-28b8-4231-a49f-68495c455a3bn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Alan Orth [email protected] https://picturingjordan.com https://englishbulgaria.net https://mjanja.ch -- All messages to this mailing list should adhere to the Code of Conduct: https://lyrasis.org/code-of-conduct/ --- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/dspace-tech/CAKKdN4X5PV6-pDZvNR9jRXyui3jptYjn%2B5x8AMht9NqBoy-A9w%40mail.gmail.com.
