Platform size and time limits for templates, pages and scripts
Key Takeaway
Page Designer pages have a 3 MB output limit, which is lower than the 10 MB limit for ISML templates. A Page Designer page over 3 MB fails silently, and shoppers see a blank page. Load less data and keep scripts short, because the platform cancels oversized pages and stops slow scripts.
B2C Commerce puts hard caps on how large a rendered page can be and how long a script can run. The limits protect the shared instance, because oversized pages can cause out of memory errors and runaway scripts can exhaust server threads. When code crosses a limit, the platform cancels the page or stops the script. Your job as a developer is to load less data and keep processing short.
Page size limits
B2C Commerce limits how much output a page can generate. ISML templates and Page Designer pages have separate limits.
| ISML templates | Page Designer pages | |
|---|---|---|
| Size limit | 10 MB of generated output | 3 MB of output rendered through dw.util.Template.render() |
| Error message | Exception: "Page size limit of 10 MB exceeded" | Internal log entry, such as "PageSizeLimitExceeded: Page size limit of 3 MB exceeded" |
The 10 MB limit applies to both storefront and Business Manager ISML templates. The limit exists to prevent out of memory errors and keep pages fast. When a template's output goes over 10 MB, page processing is canceled with the exception shown in the table.
Business Manager pages can go over the limit too. For example, a large number of unnecessary tax classes and jurisdictions can push the "Ordering > Taxation Settings > TaxRate" page over 10 MB. The page then returns an error.
The Page Designer limit is lower, so a Page Designer page can fail even when its output is far below the 10 MB ISML template limit. A Page Designer page over 3 MB fails silently on the storefront. Page processing is canceled, and shoppers see a blank page with no hint of the cause. The internal log entry is the only evidence of what went wrong.
A content team builds a holiday gift guide as a Page Designer page. They add a component that shows hundreds of gift ideas, each with a long description and several images. The rendered output comes to about 4 MB, which is under the 10 MB ISML template limit but over the 3 MB Page Designer limit. When shoppers open the page, page processing is canceled and they see a blank page. Nothing on the page explains why. A developer finds the cause only in an internal log entry: "PageSizeLimitExceeded: Page size limit of 3 MB exceeded".