[DRE-maint] Bug#956211: [Pkg-javascript-devel] Bug#956211: Bug#956211: [Re: nodejs 10 segfaults when running webpack on gitlab 12.9.2]

Jérémy Lal kapouer at melix.org
Fri Apr 10 20:54:31 BST 2020


Le ven. 10 avr. 2020 à 21:15, Pirate Praveen <praveen at onenetbeyond.org> a
écrit :

> Control: reassign -1 gitlab
> Control: tags -1 -wontfix
>
> On Sat, Apr 11, 2020 at 12:32 am, Pirate Praveen
> <praveen at onenetbeyond.org> wrote:
> >
> >
> > On Fri, Apr 10, 2020 at 8:58 pm, Jérémy Lal <kapouer at melix.org>
> > wrote:
> >>
> >>
> >> Le ven. 10 avr. 2020 à 20:50, Pirate Praveen
> >>  <praveen at onenetbeyond.org> a écrit :
> >>>
> >>>
> >>>  On Fri, Apr 10, 2020 at 7:35 pm, Jérémy Lal <kapouer at melix.org>
> >>>   wrote:
> >>>  > Package: nodejs
> >>>  > Version: 10.19.0~dfsg-3
> >>>  > Followup-For: Bug #956211
> >>>  >
> >>>  > Pirate, i repeat, please try
> >>>  >
> >>>  > webpack --max-old-space-size=4096
> >>>  >
> >>>  > Or even a higher value. If it works, it's up to gitlab to use
> >>> that
> >>>  > flag.
> >>>  >
> >>>
> >>>  root at gitlab-buster:/usr/share/gitlab# runuser -u ${gitlab_user} --
> >>> sh
> >>>  -c 'webpack --max-old-space-size=8192 --config
> >>>   config/webpack.config.js'
> >>>
> >>>  I tried 4096, 6144, 8192, 16384 and all failed. How much higher
> >>>   should
> >>>  I go?
> >>
> >> Not further :)
> >> However then maybe that flag has no effect.
> >> Another way to pass the flag is by setting the environment variable:
> >> NODE_OPTIONS="–max-old-space-size=2048"
> >> Then again, runuser need to be told to handle this correctly.
> >>
> >
> > I will try this, probably tomorrow.
> >
>
> runuser -u ${gitlab_user} -- sh -c
> 'NODE_OPTIONS="--max-old-space-size=2048" webpack
> --max-old-space-size=16384 --config config/webpack.config.js'
>
> This worked. Thanks a lot.
>

Nice. My bad for having "googled" the answer.
Of course you need to remove the useless --max-old-space-size in your line.
 'NODE_OPTIONS="--max-old-space-size=2048" webpack
 --config config/webpack.config.js

but i bet you already noticed that.

>>>
> >>>  > Nodejs applications using high memory must use that kind of
> >>>  > workaround.
> >>>
> >>>  I was also exploring if excluding system libraries from
> >>> babel-loader
> >>>  reduces memory footprint.
> >>
> >> Yep, i saw that.
> >> Can you give me a quick way to reproduce the OOM error ?
> >>
> > If you are okay setting up gitlab from experimental on an lxc or vm
> > then instructions are here https://wiki.debian.org/gitlab
> >
> > Else I can set it up on a test VPS and give you access, possibly
> > tomorrow.
>

Well, if it worked, i won't bother and you shouldn't either.
Anyway i'm cool with following the wiki.

Jérémy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20200410/0b5700ca/attachment.html>


More information about the Pkg-ruby-extras-maintainers mailing list