out of memory
See original GitHub issueWebpack 2 terminates due to out of memory for our Project at work.
<--- Last few GCs --->
117575 ms: Mark-sweep 1356.4 (1457.2) -> 1364.8 (1457.2) MB, 593.4 / 0 ms [allocation failure] [scavenge might not succeed].
118168 ms: Mark-sweep 1364.8 (1457.2) -> 1364.8 (1457.2) MB, 592.5 / 0 ms [allocation failure] [scavenge might not succeed].
118777 ms: Mark-sweep 1364.8 (1457.2) -> 1364.8 (1457.2) MB, 609.1 / 0 ms [last resort gc].
119381 ms: Mark-sweep 1364.8 (1457.2) -> 1364.8 (1457.2) MB, 603.8 / 0 ms [last resort gc].
<--- JS stacktrace --->
==== JS stack trace =========================================
Security context: 0x2caa627e3ac1 <JS Object>
1: /* anonymous */(aka /* anonymous */) [/Users/entwickler/programming/factroFrontend/node_modules/webpack/lib/optimize/RemoveParentModulesPlugin.js:43] [pc=0xe09107f767b] (this=0x2caa62704189 <undefined>,key=0x11a5e8dd09d9 <String[4]: 1084>)
2: arguments adaptor frame: 3->1
3: InnerArrayForEach(aka InnerArrayForEach) [native array.js:~942] [pc=0xe09109b31f0] (this=0x2caa62704189 <u...
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory
fish: 'node_modules/.bin/webpack' terminated by signal SIGABRT (Abort)
Sadly I’m not allowed to just give you our Project for debugging. I hope you can still do something about it.
Configuration:
eslint: {
configFile: './.eslintrc',
failOnWarning: false,
failOnError: true,
},
context: __dirname,
resolve: {
modulesDirectories: ['node_modules/@marudor', 'dependency', 'node_modules'],
alias: {
theme: 'Theme/index.js',
warning: 'fbjs/lib/warning.js',
shallowequal: 'fbjs/lib/shallowEqual.js',
vex: 'vex/js/vex.js',
joyride: 'react-joyride/index.js',
vexCSS: path.resolve('./dependency/vex/css'),
},
},
entry,
output: {
path: outputPath,
filename: name,
chunkFilename: node_env === 'production' ? '[id]-[chunkhash].js' : '[id].js',
publicPath: '/',
},
module: {
loaders: [
{ test: /^((?!(CSS|css)\.js$).)*(\.jsx?)$/,
exclude: /(node_modules|dependency|primusClient\.js|Unit\/Services)/,
loader: jsLoader,
},
{
test: /tinymce(\\|\/)(plugins|themes|skins|langs)/,
loader: 'file?name=[path][name].[ext]&context=dependency/tinymce',
},
{ test: /\.css$/, loader: ExtractTextPlugin.extract('style', 'css'), include: /Editor/, exclude: /tinymce(\\|\/)/ },
{ test: /\.css$/, loader: 'style!css', exclude: /(tinymce(\\|\/)|Editor)/ },
{ test: /\.(CSS|css)\.js$/, exclude: /(node_modules|dependency)/, loader: `inline-css!${jsLoader}` },
{ test: /\.(jpg|png|gif|jpeg|ico)$/, loader: 'url', exclude: /tinymce(\\|\/)/ },
{ test: /\.(eot|ttf|otf|svg|woff2?)(\?.*)?$/, loader: 'file', exclude: /tinymce(\\|\/)/ },
{ test: /\.pdf$/, loader: 'file', exclude: /tinymce(\\|\/)/ },
{ test: /\.json$/, loader: 'json' },
{
test: /-spec\.js/,
exclude: /(node_modules|dependency)/,
loader: 'mocha!babel!eslint',
},
],
noParse: [
/primusClient\.js/,
/.*primusClient.*/,
/react\\dist\\react(-with-addons)?\.js/,
],
},
plugins: [
new webpack.NoErrorsPlugin(),
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: JSON.stringify(node_env),
},
FACTRO_CONFIG: JSON.stringify(config),
__DEV__: JSON.stringify(__DEV__),
__PROD__: JSON.stringify(!__DEV__),
__WEB__: JSON.stringify(true),
__APP__: JSON.stringify(false),
}),
new ExtractTextPlugin('[name].css'),
new HtmlWebpackPlugin({
filename: 'index.html',
template: 'html!src/Web/index.html',
minify: {},
}),
new webpack.optimize.CommonsChunkPlugin({
async: true,
minChunks: 3,
children: true,
}),
]
devServer: {
proxy: {
'/api/*': {
target: 'http://localhost:65429',
toProxy: true,
changeOrigin: true,
xfwd: true,
},
'/primus/*': {
target: 'http://127.0.0.1:3000',
ws: true,
},
},
},
Issue Analytics
- State:
- Created 8 years ago
- Reactions:8
- Comments:43 (16 by maintainers)
Top Results From Across the Web
Out of memory - Wikipedia
Out of memory (OOM) is an often undesired state of computer operation where no additional memory can be allocated for use by programs...
Read more >What Does "out of Memory" Mean? - EasyTechJunkie
"Out of memory" (OOM) is an error message seen when a computer no longer has any spare memory to allocate to programs. An...
Read more >Steps to Fix Out of Memory Error in Windows 10, 8.1, 8, 7
Out-of-memory error is an often unwanted state of computer performance. Where no additional memory can be assigned for use by applications or ...
Read more >FIX: Out of memory error occurs when Database Node ...
An "Out of Memory" error can occur when a Database Node Memory (KB) becomes less than 2 percent of the target size, and...
Read more >How to fix Out of Memory error in windows 10 - TechCult
You may receive an “Out of Memory” error message because of the desktop heap limitation. After you open many application windows, you may...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@skora: I tried. Also, there is a problem.
Same issue here, webpack 2.2, happens often on 8GB RAM machine after ~20-30 sass/js rebuilds