You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I stumbled into an allocation error when trying this manifest plugin:
95% emitting WebpackAssetsManifest
<--- Last few GCs --->
[79715:0x104002800] 310074 ms: Scavenge 3481.1 (4172.2) -> 3480.3 (4183.7) MB, 14.3 / 0.0 ms (average mu = 0.300, current mu = 0.380) allocation failure
[79715:0x104002800] 310425 ms: Mark-sweep 3491.2 (4183.7) -> 3490.2 (4168.7) MB, 315.3 / 0.0 ms (average mu = 0.256, current mu = 0.168) allocation failure scavenge might not succeed
[79715:0x104002800] 310454 ms: Scavenge 3495.1 (4168.7) -> 3494.4 (4179.7) MB, 14.0 / 0.0 ms (average mu = 0.256, current mu = 0.168) allocation failure
<--- JS stacktrace --->
==== JS stack trace =========================================
0: ExitFrame [pc: 0xcb64b24fc7d]
Security context: 0x12e43151d949 <JSObject>
1: DoJoin(aka DoJoin) [0x12e431505de9] [native array.js:~89] [pc=0xcb64c7cb622](this=0x12e40ed025b1 <undefined>,0x12e42b2726b9 <JSArray[3171]>,3171,0x12e40ed02741 <true>,0x12e40ed09109 <String[1]: >,0x12e40ed02801 <false>,0x12e40ed025b1 <undefined>,0x12e40ed025b1 <undefined>)
2: Join(aka Join) [0x12e431505e39] [native array.js:~115] [pc=0xcb64b5e0907...
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0x100060c8f node::Abort() [/usr/local/Cellar/node/11.8.0/bin/node]
2: 0x10006134f node::OnFatalError(char const*, char const*) [/usr/local/Cellar/node/11.8.0/bin/node]
3: 0x1001749ff v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/usr/local/Cellar/node/11.8.0/bin/node]
4: 0x1001749a0 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/local/Cellar/node/11.8.0/bin/node]
5: 0x1004300bc v8::internal::Heap::UpdateSurvivalStatistics(int) [/usr/local/Cellar/node/11.8.0/bin/node]
Raising limits with NODE_OPTIONS="--max-old-space-size=4096" was not enough.
Following what one of my team mate did on the plugin we currently use to actually fix the same memory error we had with it (see https://github.com/danethurber/webpack-manifest-plugin/pull/174/files) here is a PR that do the same here (and better with the catchall all option) should fix the issue.
maximeg
changed the title
Get only needed stats to reduce greatly memory consumption
Get only needed stats to greatly reduce memory consumption
Feb 6, 2019
@webdeveric I noticed some recent commits were merged in #70. Any chance you'd be able to publish a new release?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I stumbled into an allocation error when trying this manifest plugin:
Raising limits with
NODE_OPTIONS="--max-old-space-size=4096"was not enough.Following what one of my team mate did on the plugin we currently use to actually fix the same memory error we had with it (see https://github.com/danethurber/webpack-manifest-plugin/pull/174/files) here is a PR that do the same here (and better with the catchall
alloption) should fix the issue.Cheerz.