Skip to content

Command killed due to excessive memory consumption #6256

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sjrowlinson opened this issue Oct 8, 2019 · 9 comments
Closed

Command killed due to excessive memory consumption #6256

sjrowlinson opened this issue Oct 8, 2019 · 9 comments
Labels
Support Support question

Comments

@sjrowlinson
Copy link

Details

Expected Result

Successful build.

Actual Result

Build failed due to excessive memory consumption:

failed_build

The log implies that it fails during the autosummary process but I can't be too sure that's the culprit yet (as previous builds have succeeded through this step).

@stsewd
Copy link
Member

stsewd commented Oct 8, 2019

Looks like your project was building ~2 weeks ago. Any big changes around that time?

Also, looks like you are using a configuration file with settings that aren't supported when using conda #5388

@stsewd stsewd added Needed: more information A reply from issue author is required Support Support question labels Oct 8, 2019
@sjrowlinson
Copy link
Author

The only change around that time which would affect the documentation building (I think) is the creation of quite a few more API documentation pages (around 40 or so) - so that sphinx-autogen (which I call recursively on all the docs/api directories via conf.py) has more work to do. It is after these new pages were created that I noticed the builds failing due to excessive memory consumption.

@no-response no-response bot removed the Needed: more information A reply from issue author is required label Oct 8, 2019
@stsewd
Copy link
Member

stsewd commented Oct 17, 2019

I've increased the build time to 15 min and memory to 1200 mb, build is passing now https://readthedocs.org/projects/finesse/builds/9818824/

@stsewd stsewd closed this as completed Oct 17, 2019
@AlexKuhnle
Copy link

For my repository I ran into a similar issue, but already in the very beginning when installing necessary requirements: link. Is there a way to prevent this from happening?

@sjrowlinson
Copy link
Author

I've increased the build time to 15 min and memory to 1200 mb, build is passing now https://readthedocs.org/projects/finesse/builds/9818824/

@stsewd Hi again, thanks very much for this. Unfortunately this error (of excessive memory consumption) has resurfaced even with these limits increased. Do you have any advice to get around this? I'm not aware of any of our dependencies being so large as to contribute a significant chunk of this 1200 MB limit but if it is anything I suspect that it will probably be suitesparse which is installed via conda through our environment file. As far as I'm aware there is no way around using conda for this as I don't think suitesparse is a default package on the RTD servers.

Is there any metric on your side which would show just how much memory a build for this project is actually consuming?

Thanks for any help again in advance!

@stsewd
Copy link
Member

stsewd commented Dec 16, 2019

@sjrowlinson I'll try to dig this a little more and try to activate a flag to run your project with the latest version of conda (there are some improvements related to memory consumption)

@sjrowlinson
Copy link
Author

sjrowlinson commented Dec 16, 2019

@stsewd Thanks for taking the time to help with this. If it ends up being too much of a resource drain then I'll try switching to using Sphinx AutoAPI to avoid having to install the package - but that's mostly a last resort, as we may end up needing the package to be installed for some things (from my little experience with AutoAPI, it doesn't work with Cython extensions currently so that would be an issue for us).

@stsewd
Copy link
Member

stsewd commented Dec 19, 2019

@sjrowlinson I have increased time and memory, the build is passing now https://readthedocs.org/projects/finesse/builds/10143568/

@sjrowlinson
Copy link
Author

@stsewd That's great! Thanks again for the help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Support Support question
Projects
None yet
Development

No branches or pull requests

3 participants