Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

angular cli 编译项目的时候内存溢出问题 #34

Open
Christian-health opened this issue Nov 10, 2017 · 5 comments
Open

angular cli 编译项目的时候内存溢出问题 #34

Christian-health opened this issue Nov 10, 2017 · 5 comments

Comments

@Christian-health
Copy link
Owner

Christian-health commented Nov 10, 2017

问题的现象,打包的时候报错:

     <--- Last few GCs --->

     

       727126 ms: Mark-sweep 1319.2 (1411.7) -> 1319.2 (1418.7) MB, 1692.5 / 0.0 ms [allocation failure] [GC in old space requested].

       728823 ms: Mark-sweep 1319.2 (1418.7) -> 1319.2 (1418.7) MB, 1696.7 / 0.0 ms [allocation failure] [GC in old space requested].

       730538 ms: Mark-sweep 1319.2 (1418.7) -> 1321.4 (1411.7) MB, 1714.7 / 0.0 ms [last resort gc].

       732257 ms: Mark-sweep 1321.4 (1411.7) -> 1323.6 (1411.7) MB, 1718.8 / 0.0 ms [last resort gc].

     

     

     <--- JS stacktrace --->

     

     ==== JS stack trace =========================================

     

     Security context: 0x28ea89acfb51 <JS Object>

         3: token(aka token) [0x28ea89a04381 <undefined>:1737] [pc=0x90b66bcc144] (this=0x28ea89a04381 <undefined>,type=0x28ea89a05301 <String[6]: string>,value=0x24a33049d519 <String[450]\: \n        <div class="ui-rating" [ngClass]="{'ui-state-disabled': disabled}">\n            <a href="#" *ngIf="cancel" (click)="clear($event)">\n                <span class="fa fa-ban"></span>\n            </a>\n...

     

     FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

      1: node::Abort() [@angular/cli]

      2: 0x1098b2c [@angular/cli]

      3: v8::Utils::ReportApiFailure(char const*, char const*) [@angular/cli]

      4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [@angular/cli]

      5: v8::internal::Factory::NewFixedArray(int, v8::internal::PretenureFlag) [@angular/cli]

      6: v8::internal::TypeFeedbackVector::New(v8::internal::Isolate*, v8::internal::Handle<v8::internal::TypeFeedbackMetadata>) [@angular/cli]

      7: 0xb47d40 [@angular/cli]

      8: 0xb480a9 [@angular/cli]

      9: 0xb4a4a0 [@angular/cli]

     10: 0xb51b46 [@angular/cli]

     11: v8::internal::Compiler::Compile(v8::internal::Handle<v8::internal::JSFunction>, v8::internal::Compiler::ClearExceptionFlag) [@angular/cli]

     12: v8::internal::Runtime_CompileLazy(int, v8::internal::Object**, v8::internal::Isolate*) [@angular/cli]

     13: 0x90b511092a7

@Christian-health
Copy link
Owner Author

Christian-health commented Nov 10, 2017

@Christian-health
Copy link
Owner Author

node-memory

@Christian-health
Copy link
Owner Author

angular/angular-cli#5618

image

@Christian-health
Copy link
Owner Author

angular/angular-cli#5618

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant