Trying to run webpack --mode=production OOMs after 4 minutes:
plotter:~/saxi$ ./node_modules/.bin/webpack --mode=production
(node:31188) [DEP_WEBPACK_COMPILATION_CACHE] DeprecationWarning: Compilation.cache was removed in favor of Compilation.getCache()
(Use `node --trace-deprecation ...` to show where the warning was created)
<--- Last few GCs --->
[31188:0x631aab8] 273299 ms: Mark-Compact 123.5 (129.2) -> 123.0 (129.2) MB, 3628.65 / 0.00 ms (average mu = 0.695, current mu = 0.280) allocation failure; scavenge might not succeed
[31188:0x631aab8] 278286 ms: Mark-Compact 123.5 (129.2) -> 122.8 (129.7) MB, 4329.25 / 0.00 ms (average mu = 0.496, current mu = 0.132) allocation failure; scavenge might not succeed
<--- JS stacktrace --->
FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
Aborted
This is on a machine with 512Mb of memory and 1024Mb of swap.
Trying to run
webpack --mode=production
OOMs after 4 minutes:This is on a machine with 512Mb of memory and 1024Mb of swap.