Best practice for OPcache memory size in Adobe Commerce
Last update: November 7, 2024
- Topics:
- Best Practices
CREATED FOR:
- Experienced
- Developer
For Adobe Commerce on cloud infrastructure Pro plan architecture 2.3.x, it is recommended to set opcache.memory_consumption
to at least 2 GB, to avoid performance degradation.
Affected products and versions
- Adobe Commerce on cloud infrastructure Pro plan architecture 2.3.x
- PHP 7.0 and later
Configure memory
Allocate at least 2GB of memory for the OPcache PHP module. The OPcache module is configured in the php.ini
file. To allocate 2048 MB of memory, set opcache.memory_consumption = 2048
.
Additional information
Previous pageRedis service configuration
Next pageRealpath cache size
Commerce
- Overview
- Architecture and integrations
- Maintenance and support
- Best practices
- Overview
- Planning
- Development
- Launch
- Maintenance
- Overview
- Post-launch support
- Audit frontend performance
- Optimize backend performance
- Indexer configuration
- Patching at scale
- Order processing
- Resolve database performance issues
- Respond to security incidents
- Scheduling Admin updates on production sites
- Update services
- Upgrade checklist
- Upgrade prerequisites for MariaDB
- Glossary
- Return to Operational Guides