-
Notifications
You must be signed in to change notification settings - Fork 2
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
JavaScript heap out of memory #3
Comments
Wow, I've never encountered that error before and I have some larger albums, but maybe increasing the node memory allocation as you mention might help in your case. I found a mention of the argument In order for the argument to work inside the docker container, you could try using the NODE_OPTIONS environment variable to pass the argument to node through docker. To do this, the docker run command might looks something similar to If you get that to work, you wouldn't need to do this, but to directly modify the node command when running the docker container, you could substitute the command for a different one by passing it into the docker run command like this: If this continues to be a problem, maybe we should look into using a different node module instead of exif-reader. Please let me know how it goes and thanks for the nice writeup. |
Thanks for the info. I added that option, and indeed it ran for longer, 7 hours! Just checked now and it looks like an exception on the thumb generation for dates or something.
Sorry about the log format, it's from Docker container log file. Those lines above the ... are repeated thousands of times. It looks like it has created all the thumbs in the persistent/storage/thumbs/NAS/ folders. |
Could you describe your albums a bit - are there lots of small videos? or just a couple larger ones and the rest photos? etc Video support is still pretty new and I'm working out the kinks. I'm committing some stuff that should at least help with the date TypeErrors in your log. I'm thinking that for video, it might be time to implement a small database or cache the metadata in some form a bit better. Please let me know how it goes if you feel like trudging forward with this. I'll be interested if any of the latest stuff helps. Thanks |
I did end up committing a limiter for the number of generated thumbnails (previews) of the album and also modified the album view to show more progress as images load, so this should no longer be an issue as long as people take care not to add too many images to one album. |
Hi,
Thanks for the container.
When mounting a large photo library from a remote NAS the containers runs for about 5 minutes then dies with
What's the best way to give more RAM to node, so that it can continue?
Thanks,
Paul.
The text was updated successfully, but these errors were encountered: