question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Daily release builds take a long time

See original GitHub issue

This is a…


[ ] Feature request
[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Documentation issue or request

Description

I was able to narrow this down to this command taking a lot of CPU:

/mnt/hudson_workspace/workspace/syndesis-release-daily/app/ui-react/node/node --max-old-space-size=2048 /mnt/hudson_workspace/workspace/syndesis-release-daily/app/ui-react/node_modules/fork-ts-checker-webpack-plugin/lib/service.js

And with @riccardo-forina’s help narrowed it down to this issue https://github.com/facebook/create-react-app/issues/6792.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
zregvartcommented, Jun 5, 2019

I managed to get a daily build (1.7.1-20190605), closing this.

0reactions
paoloantinoricommented, Jun 5, 2019

I’ve missed this message. Good to know, I’ll try to tweak the setup just to learn something new

On Mon, 3 Jun 2019, 12:34 Zoran Regvart, notifications@github.com wrote:

@paoloantinori https://github.com/paoloantinori I can’t reproduce this issue using your instructions https://gist.github.com/paoloantinori/3e1ed14f75c1e3e332bce8b11b34706c, I can reproduce a memory issue, not the same memory issue, of getting killed by the OOM killer when running with 2GB of RAM and without any swap.

This is how I tried to reproduce the issue locally:

Ran a Docker container specified Dockerfile, to create the build image:

FROM docker.io/adoptopenjdk:8-hotspot RUN apt-get update -y
&& apt-get install -y git
&& rm -rf /var/lib/apt/lists/*

Like this:

$ docker run -it -m 2G --memory-swappiness 0 --privileged -u $(id -u)😒(id -g) --ulimit nofile=122880:122880 -v pwd:/work -e HOME=/tmp build /bin/bash`

And in the container I ran;

$ cd /work; ./mvnw -f ui-react clean verify

That leads me to believe that in your case the 300MB of memory was not the total amount of memory used, but also (probably a large) amount of swap was used.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/syndesisio/syndesis/issues/5468?email_source=notifications&email_token=AALTHWULL3WGZZ2NMSTNZXDPYTXURA5CNFSM4HP2MCL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWY75EI#issuecomment-498204305, or mute the thread https://github.com/notifications/unsubscribe-auth/AALTHWSSEDELMVKH3MSMFI3PYTXURANCNFSM4HP2MCLQ .

Read more comments on GitHub >

github_iconTop Results From Across the Web

When building time takes so long, how to improve engineer's ...
If one developer wastes 2 hours daily in the build process, the cost would be too high. How to improve the efficiency when...
Read more >
How long is too long for a build? - Industrial Logic
As one extreme example, google is able to take a commit to live in production in 10 minutes (around 21 minutes in). Google...
Read more >
Why Reducing Your Project's Build Time Matters |
Adding 5 seconds to a 45-second build might not seem so bad until it happens again, and again.
Read more >
Slow Builds: A Release Manager's Worst Nightmare
The main reasons why release managers dread slow builds. ... or Google are releasing at an unimaginable pace – thousands of times a...
Read more >
Why is my Rust build so slow? - fasterthanli.me
And optimizing isn't free, so, it makes sense that a release build would take longer. But that much longer? There's another difference: by ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found