Kylo build fail JavaScript heap out of memory

Description

$cd ui/ui-app
$mvn clean install -o -DskipTests

[INFO] Running 'npm link --https-proxy=http://127.0.0.1:1080 --proxy=http://127.0.0.1:1080' in /soft/kylo/ui/ui-app/target/classes/static/lib
[WARNING] npm WARN registry Unexpected warning for http://registry.npm.taobao.org/: Miscellaneous Warning HPE_INVALID_CONSTANT: request to http://registry.npm.taobao.org/tslib failed, reason: Parse Error
[WARNING] npm WARN registry Using stale package data from http://registry.npm.taobao.org/ due to a request error during revalidation.
[ERROR] npm notice created a lockfile as package-lock.json. You should commit this file.
[WARNING] npm WARN @kylo/feed@0.10.1-SNAPSHOT requires a peer of @angular/core@>=5 but none is installed. You must install peer dependencies yourself.
[WARNING] npm WARN @kylo/feed@0.10.1-SNAPSHOT requires a peer of @angular/forms@>=5 but none is installed. You must install peer dependencies yourself.
[ERROR]
[INFO] added 1 package from 1 contributor in 0.43s
[INFO] /soft/kylo/ui/ui-app/lib/node_modules/@kylo/feed -> /soft/kylo/ui/ui-app/target/classes/static/lib
[INFO]
[INFO] — frontend-maven-plugin:1.6:npm (npm build) @ kylo-ui-app —
[INFO] Found proxies: [optional{protocol='socks5', host='127.0.0.1', port=1080}]
[INFO] Running 'npm run build --https-proxy=http://127.0.0.1:1080 --proxy=http://127.0.0.1:1080' in /soft/kylo/ui/ui-app
[INFO]
[INFO] > kylo@0.10.1-SNAPSHOT build /soft/kylo/ui/ui-app
[INFO] > npm run build:webpackrod
[INFO]
[WARNING] npm WARN invalid config loglevel="notice"
[INFO]
[INFO] > kylo@0.10.1-SNAPSHOT build:webpackrod /soft/kylo/ui/ui-app
[INFO] > webpack --profile --env.production
[INFO]
[INFO] parsing argv /soft/kylo/ui/ui-app/node/node
[INFO] parsing argv /soft/kylo/ui/ui-app/node_modules/.bin/webpack
[INFO] parsing argv --profile[ERROR] npm notice created a lockfile as package-lock.json. You should commit this file.
[WARNING] npm WARN @kylo/feed@0.10.1-SNAPSHOT requires a peer of @angular/core@>=5 but none is installed. You must install peer dependencies yourself.
[WARNING] npm WARN @kylo/feed@0.10.1-SNAPSHOT requires a peer of @angular/forms@>=5 but none is installed. You must install peer dependencies yourself.
[ERROR]
[INFO] added 1 package from 1 contributor in 0.43s
[INFO] /soft/kylo/ui/ui-app/lib/node_modules/@kylo/feed -> /soft/kylo/ui/ui-app/target/classes/static/lib
[INFO]
[INFO] — frontend-maven-plugin:1.6:npm (npm build) @ kylo-ui-app —
[INFO] Found proxies: [optional{protocol='socks5', host='127.0.0.1', port=1080}]
[INFO] Running 'npm run build --https-proxy=http://127.0.0.1:1080 --proxy=http://127.0.0.1:1080' in /soft/kylo/ui/ui-app
[INFO]
[INFO] > kylo@0.10.1-SNAPSHOT build /soft/kylo/ui/ui-app
[INFO] > npm run build:webpackrod
[INFO]
[WARNING] npm WARN invalid config loglevel="notice"
[INFO]
[INFO] > kylo@0.10.1-SNAPSHOT build:webpackrod /soft/kylo/ui/ui-app
[INFO] > webpack --profile --env.production
[INFO]
[INFO] parsing argv /soft/kylo/ui/ui-app/node/node
[INFO] parsing argv /soft/kylo/ui/ui-app/node_modules/.bin/webpack
[INFO] parsing argv --profile
[INFO] parsing argv --env.production
[INFO] found? false param port: undefined
[INFO] parsing argv /soft/kylo/ui/ui-app/node/node
[INFO] parsing argv /soft/kylo/ui/ui-app/node_modules/.bin/webpack
[INFO] parsing argv --profile
[INFO] parsing argv --env.production
[INFO] found? false param host: undefined
[INFO] port 3000
[INFO] host localhost
[ERROR] clean-webpack-plugin: /soft/kylo/ui/ui-app/target/classes/static/*.js has been removed.
[ERROR] clean-webpack-plugin: /soft/kylo/ui/ui-app/target/cache has been removed.
[ERROR] clean-webpack-plugin: /soft/kylo/ui/ui-app/target/aot has been removed.
[INFO] js/search/module.ts: js/search/common/search.html -> ./common/search.html
[INFO]
[INFO] <--- Last few GCs --->
[INFO]
[INFO] [2844:0x2df7790] 434653 ms: Mark-sweep 1351.0 (1443.6) -> 1338.4 (1445.6) MB, 2724.5 / 0.0 ms (average mu = 0.143, current mu = 0.093) allocation failure scavenge might not succeed
[INFO] [2844:0x2df7790] 437856 ms: Mark-sweep 1352.9 (1445.6) -> 1339.2 (1447.1) MB, 2771.8 / 0.0 ms (average mu = 0.139, current mu = 0.135) allocation failure scavenge might not succeed
[INFO]
[INFO]
[INFO] <--- JS stacktrace --->
[INFO]
[INFO] ==== JS stack trace =========================================
[INFO]
[INFO] 0: ExitFrame [pc: 0x20316b9dc01d]
[INFO] Security context: 0x2920c8f9e681 <JSObject>
[INFO] 1: _walk [0x1a287a5141b9] [0x367197b026f1 <undefined>:~1110] [pc=0x20316ea6c052](this=0x1051d0a41751 <AST_Dot map = 0xac222c85279>,visitor=0x2ac9440f1a81 <TreeWalker map = 0x3aa7bcd66a11>)
[INFO] 2: /* anonymous */ [0x158602edc001] [0x367197b026f1 <undefined>:~1111] [pc=0x20316dc72b20](this=0x29d1bff233a1 <AST_Dot map = 0xac222c85279>)
[INFO] 3: _walk [0x1a287...
[INFO]
[ERROR] FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
[ERROR] 1: 0x8d1bc0 node::Abort() [node]
[ERROR] 2: 0x8d1c0c [node]
[ERROR] 3: 0xb00bae v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
[ERROR] 4: 0xb00de4 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
[ERROR] 5: 0xeee2b2 [node]
[ERROR] 6: 0xeee3b8 v8::internal::Heap::CheckIneffectiveMarkCompact(unsigned long, double) [node]
[ERROR] 7: 0xefa4e2 v8::internal::Heap:erformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [node]
[ERROR] 8: 0xefae14 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
[ERROR] 9: 0xefda81 v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationSpace, v8::internal::AllocationAlignment) [node]
[ERROR] 10: 0xec6fa4 v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationSpace) [node]
[ERROR] 11: 0x11660ce v8::internal::Runtime_AllocateInNewSpace(int, v8::internal::Object*, v8::internal::Isolate) [node]
[ERROR] 12: 0x20316b9dc01d
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 08:19 min
[INFO] Finished at: 2019-02-22T00:48:35-05:00
[INFO] Final Memory: 60M/1979M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:npm (npm build) on project kylo-ui-app: Failed to run task: 'npm run build --https-proxy=http://127.0.0.1:1080 --proxy=http://127.0.0.1:1080' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 134 (Exit value: 134) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[INFO] parsing argv --env.production
[INFO] found? false param port: undefined
[INFO] parsing argv /soft/kylo/ui/ui-app/node/node
[INFO] parsing argv /soft/kylo/ui/ui-app/node_modules/.bin/webpack
[INFO] parsing argv --profile
[INFO] parsing argv --env.production
[INFO] found? false param host: undefined
[INFO] port 3000
[INFO] host localhost
[ERROR] clean-webpack-plugin: /soft/kylo/ui/ui-app/target/classes/static/*.js has been removed.
[ERROR] clean-webpack-plugin: /soft/kylo/ui/ui-app/target/cache has been removed.
[ERROR] clean-webpack-plugin: /soft/kylo/ui/ui-app/target/aot has been removed.

Environment

None

Status

Assignee

Unassigned

Reporter

张家锋

Labels

None

Reviewer

None

Story point estimate

None

Components

Priority

Medium
Configure