Bug #73032
closedFile search causes memory leaks with too many files
100%
Description
During the file search in the file module the search result is only limited to possibly matching folders. That itself decreases the search over all files in a storage but it still does not prevent memory leaks, where the result of possible folders contain a decent amount of files.
Example:
fileadmin has a total of 10.000 files.
fileadmin has a subfolder called foo
fileadmin/foo holds a subset of 1000 files.
fileadmin/foo holds the file bar
A search for bar asks the database for all folders that contain files with the matching identifier bar. As a result, only the folder fileadmin/foo is returned which already excludes 9000 possible files.
Still, the resultset contains 1000 files, whoose name is compared php-wise with the search string. During that foreach loop each a file object with a decent memory footprint will be created. This easily exceeds the avialable memory limit.
Updated by Gerrit Code Review over 8 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46395
Updated by Gerrit Code Review over 8 years ago
Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47078
Updated by Anonymous over 8 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 72a7312ce91487256695d6c461e4c4dff52916be.
Updated by Riccardo De Contardi almost 7 years ago
- Status changed from Resolved to Closed