Project

General

Profile

Bug #26826

Plugin fails to compile webpack with out of memory error

Added by Tomer Brisker 4 months ago. Updated about 2 months ago.


Description

Katello build process is currently failing with:

[2019-05-17T22:52:44.782Z] /home/jenkins/workspace/katello-master-source-release/foreman/node_modules/webpack/bin/webpack.js --config /home/jenkins/workspace/katello-master-source-release/foreman/config/webpack.config.js --bail --env.pluginName=katello

[2019-05-17T22:58:36.386Z] 

[2019-05-17T22:58:36.388Z] <--- Last few GCs --->

[2019-05-17T22:58:36.388Z] 

[2019-05-17T22:58:36.388Z]   337446 ms: Mark-sweep 1219.4 (1438.7) -> 1217.7 (1436.7) MB, 1841.7 / 0.0 ms [allocation failure] [GC in old space requested].

[2019-05-17T22:58:36.388Z]   339438 ms: Mark-sweep 1217.7 (1436.7) -> 1217.7 (1436.7) MB, 1991.2 / 0.0 ms [allocation failure] [GC in old space requested].

[2019-05-17T22:58:36.388Z]   341519 ms: Mark-sweep 1217.7 (1436.7) -> 1228.8 (1420.7) MB, 2081.2 / 0.0 ms [last resort gc].

[2019-05-17T22:58:36.388Z]   343555 ms: Mark-sweep 1228.8 (1420.7) -> 1240.2 (1420.7) MB, 2035.2 / 0.0 ms [last resort gc].

[2019-05-17T22:58:36.388Z] 

[2019-05-17T22:58:36.388Z] 

[2019-05-17T22:58:36.388Z] <--- JS stacktrace --->

[2019-05-17T22:58:36.388Z] 

[2019-05-17T22:58:36.388Z] ==== JS stack trace =========================================

[2019-05-17T22:58:36.388Z] 

[2019-05-17T22:58:36.388Z] Security context: 0x1da44b7cf781 <JS Object>

[2019-05-17T22:58:36.388Z]     2: /* anonymous */ [/home/jenkins/workspace/katello-master-source-release/foreman/node_modules/source-map/lib/source-node.js:~86] [pc=0x3e2656b9686f] (this=0x1022fa313f49 <JS Function SourceNode (SharedFunctionInfo 0x2acbe78e6931)>,mapping=0x146a343bde31 <an Object with map 0x297b51245391>)

[2019-05-17T22:58:36.388Z]     3: arguments adaptor frame: 3->1

[2019-05-17T22:58:36.388Z]     4: InnerArrayForEach(aka InnerArrayForEach) [native array.js...

[2019-05-17T22:58:36.388Z] 

[2019-05-17T22:58:36.388Z] FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

[2019-05-17T22:58:36.388Z]  1: node::Abort() [node]

[2019-05-17T22:58:36.388Z]  2: 0x710f9c [node]

[2019-05-17T22:58:36.388Z]  3: v8::Utils::ReportApiFailure(char const*, char const*) [node]

[2019-05-17T22:58:36.388Z]  4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [node]

[2019-05-17T22:58:36.388Z]  5: v8::internal::Factory::NewUninitializedFixedArray(int) [node]

[2019-05-17T22:58:36.388Z]  6: 0xa7e48f [node]

[2019-05-17T22:58:36.388Z]  7: v8::internal::Runtime_GrowArrayElements(int, v8::internal::Object**, v8::internal::Isolate*) [node]

[2019-05-17T22:58:36.388Z]  8: 0x3e26559079a7

[2019-05-17T22:58:36.388Z] rake aborted!
</pre

Associated revisions

Revision cb942a76 (diff)
Added by Tomer Brisker 4 months ago

Fixes #26826 - Increase js heap size for plugin asset compile

Revision 5ed76bc6 (diff)
Added by Tomer Brisker 4 months ago

Refs #26826 - Correctly increase js heap size

The option only works when passed to node, not webpack bin.

History

#1 Updated by The Foreman Bot 4 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/6769 added

#2 Updated by Ohad Levy 4 months ago

  • Target version set to 1.23.0
  • Fixed in Releases 1.23.0 added

#3 Updated by Tomer Brisker 4 months ago

  • Status changed from Ready For Testing to Closed

#4 Updated by The Foreman Bot 4 months ago

  • Pull request https://github.com/theforeman/foreman/pull/6771 added

#5 Updated by The Foreman Bot about 2 months ago

  • Pull request https://github.com/theforeman/foreman/pull/6952 added

#6 Updated by The Foreman Bot about 2 months ago

  • Pull request https://github.com/theforeman/foreman/pull/6956 added

#7 Updated by The Foreman Bot about 2 months ago

  • Pull request https://github.com/theforeman/foreman/pull/6957 added

#8 Updated by Michael Moll about 2 months ago

  • Fixed in Releases 1.21.4, 1.22.1 added

Also available in: Atom PDF