Skip to content

PHP: Reduce memory requirements – lower the HEAP size from 1GB #1233

Open
@adamziel

Description

@adamziel

Warning

This is more important since Loopback Request Support landed as we're now creating more PHP instances.

PHP is currently compiled to allocate 1024M of memory when it boots, and it limits the number of Playgrounds you can run concurrently especially on low-resource devices:

Let's see how low can we go while still keeping 256M available for running requests.

Importantly, MEMFS files are also kept at heap. I wonder what else is.

Resources

Discussions related to measuring memory usage

Related to

@brandonpayton @ellatrix

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions