Version: v0.8.1 - Beta.  We welcome contributors & feedback.

System.setMaxMemoryMb

System.setMaxMemoryMb($maxMemoryMb) -> null

Description

Set the maximum amount of memory in MB that the current page can use before triggering a memory limit error.

The value must be greater than zero.

This overrides the app-level config maxMemoryMb setting.

System.setMaxMemoryMb(30)

See Also