Closed ArjenR closed 4 years ago
Same problem here, but not text files, only pictures:
sudo -u apache php /usr/share/nextcloud/occ preview:pre-generate -vvv
2020-07-01T18:16:50+02:00 Generating previews for /user/files/DSC_1169.JPG
2020-07-01T18:17:22+02:00 Generating previews for /user/files/DSC_1170.JPG
2020-07-01T18:17:55+02:00 Generating previews for /user/files/DSC_1173.JPG
2020-07-01T18:18:27+02:00 Generating previews for /user/files/DSC_1165.JPG
2020-07-01T18:19:26+02:00 Generating previews for /user/files/DSC_1163.JPG
2020-07-01T18:21:36+02:00 Generating previews for /user/files/DSC_1161.JPG
2020-07-01T18:22:46+02:00 Generating previews for /user/files/DSC_1159.JPG
2020-07-01T18:23:52+02:00 Generating previews for /user/files/DSC_1151.JPG
2020-07-01T18:26:31+02:00 Generating previews for /user/files/DSC_1156.JPG
mmap() failed: [12] Cannot allocate memory
mmap() failed: [12] Cannot allocate memory
PHP Fatal error: Out of memory (allocated 35909632) (tried to allocate 5617756 bytes) in /usr/share/nextcloud/lib/private/legacy/OC_Image.php on line 649
pictures are of an average size: 3,6M user/files/DSC_1151.JPG 2,3M user/files/DSC_1156.JPG 4,9M user/files/DSC_1159.JPG 2,6M user/files/DSC_1161.JPG 2,7M user/files/DSC_1163.JPG 2,5M user/files/DSC_1165.JPG 2,9M user/files/DSC_1169.JPG 2,7M user/files/DSC_1170.JPG 2,4M user/files/DSC_1173.JPG
duplicate to https://github.com/rullzer/previewgenerator/issues/194
problem still existing. as commented in #194 it seems not to be related to this app. is there any ticket for nextcloud itself, for fixing that bad behaviour?
Problem still existing
This is most likely an issue in the Nextcloud server. Nothing this app can fix.
Hi,
I think there might be a memory leak. When I run the script from the console (within a docker container) I see my availalble memory run down quite quickly until the script gets killed by oomkiller.
This is might be when the previews are generated for text files.