-
Notifications
You must be signed in to change notification settings - Fork 53
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
"fatal error: runtime: out of memory" with site with large number of links #185
Comments
A bit more information on this issue: I can't see any way to tell htmltest to only look at this part of the file. If I force htmltest to ignore the Docsy-generated menu items using data-proofer-ignore it still seems to use the same amount of memory and build all the cross-referencing - it just doesn't report any errors on them. And there is no way ignore the anchors/ids in any case.
It would be great if there was a way to only test a part of a document (e.g. within the tags, but I realise that this is a feature request, so I don't expect it to be added any time soon (if ever).Thanks for all the work you have put into htmltest. It is a pity that the combination of Hugo and Docsy is producing an unmanageable number of links otherwise I would have no hesitation in using it. |
Hey @MarkvanMents thanks for the follow up on this. Yes, in short term it's unlikely I'll be able to have a look at this. |
Hi @wjdp I have managed to solve this for my case by ignoring all the The GitHub source for the site I am building is here: https://github.com/mendix/docs-site-test (work in progress as you can tell from the title) Docsy generates huge HTML files in our case because every file has a sidebar with around 3000 links. My hard-coded change at least enables me to run htmltest and reduces the memory used in Windows from 16GB to around 700MB, taking about the same length of time in both cases. Not sure whether the current design of htmltest would allow a more memory-efficient solution if I had wanted to test links in all the But at least I can solve my particular case by significantly reducing the size of the Parse tree. |
Looking at the code change you've done this seems like a good fit to extend the |
Thanks for that idea - sounds like a simpler solution, can be implemented in the same way, and means that any block can be ignored. |
Hi Will, Thanks for developing htmltest - it is much faster and more flexible than the homegrown code it is replacing. Hope my PR resolves issues for others as well. |
Hi Will,
I want to use htmltest for the internal links on my large Hugo-generated website.
Running on Windows 10, it tests 3095 documents in around 3 minutes and has helped me to resolve some missing internal links. Exactly what I want.
When I put it into my Travis job to build the site automatically, however, htmltest fails with
fatal error: runtime: out of memory
.It seems that my Travis job is only given 8GB RAM - when I run under Windows, htmltest takes 16GB available to it (out of 24GB physical memory on the motherboard).
I tried setting up a 20GB swap file for Travis. This stops the fatal error, but htmltest is still running after 30 minutes and eventually gets killed by Travis.
Is this a known issue? Are there any options I have missed to tell htmltest to use less memory?
Let me know if you would like any more information. I would really like to use your tool if I can as it seems very fast and flexible.
The text was updated successfully, but these errors were encountered: