Feature #71802

Downsize minimum memory requirement to activate APC-Preset

Added by Mittwald CM Service about 6 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Category:
Install Tool
Target version:
Start date:
2015-11-24
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Currently the activation of the APC-Preset in the Install Tool is only available under the following conditions:
  1. The APC extensions is loaded
  2. The configured cache size is configured to have at least 100 MB of shared memory
  3. The cache has at least 5 MB free memory

The memory required by the Extbase object cache is actually very small (at 6.2: ~250 KB, at 7.6: ~2,5 MB, with no extra extensions installed).

I would propose, dropping the 2. condition, because a large portion of the reserved memory will never be used. After all on shared hosting environments the configured memory size is usually limited, and enabling the APCu backend is not possible in this cases. Anyway it is slightly nonsense to check the configured total size, whereas the available free memory is relevant – what indeed will be ensured by the 3. condition.

Maybe it would also be reasonable to raise the required free memory up to 10 MB (3. condition), to have some space in reserve for potentially installed extensions.

#1

Updated by Markus Klein about 6 years ago

function is \TYPO3\CMS\Install\Configuration\ExtbaseObjectCache\ApcPreset::isAvailable

#2

Updated by Gerrit Code Review about 6 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/44929

#3

Updated by Gerrit Code Review about 6 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/44929

#4

Updated by Gerrit Code Review almost 6 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/44929

#5

Updated by Gerrit Code Review almost 6 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/44929

#6

Updated by Gerrit Code Review almost 6 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/47043

#7

Updated by Thorsten Bringewatt almost 6 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
#8

Updated by Riccardo De Contardi over 4 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF