-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
occ files:scan's memory consumption grows with amount of files scanned #19115
Comments
It's by design #10922. Note: Scanned folders are unavailable while the command runs |
I see one possible enhancement: Collect structure data first and launch non-recursive scans from the bottom of the tree. Each folder update will be committed separately. |
This could be due to stat caches. When scanning a local storage, PHP will store stuff in its stat cache. Not sure if that one is capped. Regarding SMB, we added a cap to the stat cache recently: #21648 If this is still happening in 8.2.2 or 9.0 RC1, please reopen. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Expected behavior
The memory consumption of the scanner is constant.
Actual behavior
The memory consumption of the scanner grows with the amount of files, requiring to increase the memory limit again and again for users with a large amount of data.
Details
ownCloud: 8.1.3
Total amount of file in user's share: 45308
Memory required: > 256 MB, < 512 MB
The text was updated successfully, but these errors were encountered: