← back to the release
new featureApex
Handle Larger Datasets with Increased Apex Heap Limits
The Apex heap limit rises from 6 MB to 10 MB for synchronous transactions and from 12 MB to 25 MB for asynchronous transactions, enabled automatically on the Winter '27 schedule. Confirm the active limit with Limits.getLimitHeapSize(). To keep deploying Winter '27 sandbox work to Summer '26 production, temporarily set 'Enforce the Summer '26 Apex heap limit' in Apex Settings in a nonproduction org; that setting exists only in Winter '27 and the higher limits are enforced globally in Spring '27.
identifiers
Limits.getLimitHeapSizeEnforce the Summer '26 Apex heap limitApex Settings
metadata types
ApexSettings
flags
enabled by defaultno action required
- how
- No action to adopt. To restrict a nonproduction org to the old limits, enable 'Enforce the Summer '26 Apex heap limit' in Apex Settings.
- who
- when
- Auto-enabled on the Winter '27 schedule; enforced globally in Spring '27.
- where
- All editions that run custom or managed Apex.