<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le ven. 10 avr. 2020 à 21:15, Pirate Praveen <<a href="mailto:praveen@onenetbeyond.org">praveen@onenetbeyond.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Control: reassign -1 gitlab<br>
Control: tags -1 -wontfix<br>
<br>
On Sat, Apr 11, 2020 at 12:32 am, Pirate Praveen <br>
<<a href="mailto:praveen@onenetbeyond.org" target="_blank">praveen@onenetbeyond.org</a>> wrote:<br>
> <br>
> <br>
> On Fri, Apr 10, 2020 at 8:58 pm, Jérémy Lal <<a href="mailto:kapouer@melix.org" target="_blank">kapouer@melix.org</a>> <br>
> wrote:<br>
>> <br>
>> <br>
>> Le ven. 10 avr. 2020 à 20:50, Pirate Praveen <br>
>> <<a href="mailto:praveen@onenetbeyond.org" target="_blank">praveen@onenetbeyond.org</a>> a écrit :<br>
>>> <br>
>>> <br>
>>> On Fri, Apr 10, 2020 at 7:35 pm, Jérémy Lal <<a href="mailto:kapouer@melix.org" target="_blank">kapouer@melix.org</a>> <br>
>>> wrote:<br>
>>> > Package: nodejs<br>
>>> > Version: 10.19.0~dfsg-3<br>
>>> > Followup-For: Bug #956211<br>
>>> ><br>
>>> > Pirate, i repeat, please try<br>
>>> ><br>
>>> > webpack --max-old-space-size=4096<br>
>>> ><br>
>>> > Or even a higher value. If it works, it's up to gitlab to use <br>
>>> that<br>
>>> > flag.<br>
>>> ><br>
>>> <br>
>>> root@gitlab-buster:/usr/share/gitlab# runuser -u ${gitlab_user} --<br>
>>> sh<br>
>>> -c 'webpack --max-old-space-size=8192 --config <br>
>>> config/webpack.config.js'<br>
>>> <br>
>>> I tried 4096, 6144, 8192, 16384 and all failed. How much higher <br>
>>> should<br>
>>> I go?<br>
>> <br>
>> Not further :)<br>
>> However then maybe that flag has no effect.<br>
>> Another way to pass the flag is by setting the environment variable:<br>
>> NODE_OPTIONS="–max-old-space-size=2048"<br>
>> Then again, runuser need to be told to handle this correctly.<br>
>> <br>
> <br>
> I will try this, probably tomorrow.<br>
> <br>
<br>
runuser -u ${gitlab_user} -- sh -c <br>
'NODE_OPTIONS="--max-old-space-size=2048" webpack <br>
--max-old-space-size=16384 --config config/webpack.config.js'<br>
<br>
This worked. Thanks a lot.<br></blockquote><div><br></div><div>Nice. My bad for having "googled" the answer.</div><div>Of course you need to remove the useless --max-old-space-size in your line.</div><div> 'NODE_OPTIONS="--max-old-space-size=2048" webpack </div> --config config/webpack.config.js</div><div class="gmail_quote"><br></div><div class="gmail_quote">but i bet you already noticed that.</div><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
>>> <br>
>>> > Nodejs applications using high memory must use that kind of<br>
>>> > workaround.<br>
>>> <br>
>>> I was also exploring if excluding system libraries from <br>
>>> babel-loader<br>
>>> reduces memory footprint.<br>
>> <br>
>> Yep, i saw that.<br>
>> Can you give me a quick way to reproduce the OOM error ?<br>
>> <br>
> If you are okay setting up gitlab from experimental on an lxc or vm <br>
> then instructions are here <a href="https://wiki.debian.org/gitlab" rel="noreferrer" target="_blank">https://wiki.debian.org/gitlab</a><br>
> <br>
> Else I can set it up on a test VPS and give you access, possibly <br>
> tomorrow.<br></blockquote><div><br></div><div>Well, if it worked, i won't bother and you shouldn't either.</div><div>Anyway i'm cool with following the wiki.</div><div><br></div><div>Jérémy</div></div></div>