-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
WPEN is not scrapeable anymore in 16GB of RAM #948
Comments
@ISNIT0 @mgautierfr Any idea how we could do better? |
@ISNIT0 I'm not so sure anymore mwoffliner has crashed because of lack of memory considering that we had still a lot of memory cached. |
@kelson42 Any news? Looks like it fails when trying to resize the favicon, not sure what your monitoring says:
MWO has scraped all the content, but post-processing the favicon seems to crash... |
Failed again in the favicon resize. https://farm.openzim.org/tasks/5d611a341339d1137618f565 |
Looks like it's related to this: nodejs/node#25382 |
@ISNIT0 You told me that the problems comes probably from the fact that a process fork happens here at at time the Node.js process is already quite big. Maybe the solution is simply to move this image resize to the start of the scraping process? |
It seems imagemin (our image compression library) also suffers from this problem, so we could potentially save even more memory by finding a node configuration variable. nodejs/node#25382 (comment) The favicon is done at the end because favicon downloading etc. is handled the same way any other media file is downloaded. |
This PR may help #968 |
@ISNIT0 Still same problem
|
Maybe using a lib like https://github.com/lovell/sharp would fix the pb? |
This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions. |
See https://farm.openzim.org/tasks/5d5c519f1339d1137618f4b1
An additional effort should be done on memory consumption
The text was updated successfully, but these errors were encountered: