-
Notifications
You must be signed in to change notification settings - Fork 528
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
High memory usage ends in fatal error #443
Comments
Hello, the case of the memory is not necessarily related to a specific line of code. How big is your documentation ? |
Several hundred pages!
…________________________________
From: Stéphane Goetz <notifications@github.com>
Sent: Wednesday, March 29, 2017 8:16:26 AM
To: justinwalsh/daux.io
Cc: Slack-Moehrle; Author
Subject: Re: [justinwalsh/daux.io] fatal error (#443)
Hello, the case of the memory is not necessarily related to a specific line of code.
How big is your documentation ?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#443 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AHJQrlWxj-U6FKj3aT_ZzE-gj8RRfmM9ks5rqkuagaJpZM4Mr7AH>.
|
Okay, that's probably why, because when creating the documentation it takes all pages in memory and writes them down after. Is your documentation public by any chance so I can make some tests and improve Daux's behaviour on big projects ? If not, I will try to replicate your case with dummy pages and hope to get some improvements. In the meantime, can you try to update to the latest daux version and/or to change your memory parameters ? ( |
Hello @slackmoehrle, sorry for the long wait, I didn't have too much time on side projects these past months. I made some improvements in how Daux handles big documentation and their memory usage. I created a documentation with over 2'700 pages and reduced its memory usage to a minimum. It certainly changes from on documentation to another, but I hope this fix helps you. You can test it by downloading the latest |
By the way, if you still have problems, you might want to disable the search feature, to generate it, all files have to be kept in memory at the same time, this is one of the main causes of memory usage in the daux generator. |
@onigoetz Thanks, I will update my install and test things out. |
I am seeing this error, but I don't see a fix.
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 64 bytes) in phar://daux.io/daux.phar/libs/Tree/Directory.php on line 51
Line 51 is a } and I don't see where else this change would make sense.
The text was updated successfully, but these errors were encountered: