Skip to content

MongoDB PHP Driver 1.15+ increases PHP memory consumption #1471

Open
@jazzsequence

Description

@jazzsequence

Bug Report

We (Pantheon / https://github.com/pantheon-systems) compile PHP manually and build a variety of extensions into our PHP image. Recently, I attempted updating MongoDB from 1.14.2 (what we were previously using) to 1.16.2 and received reports that PHP was taking much longer to resolve according to New Relic data. Rolling back to 1.15.x did not resolve, but the difference can be seen after we reverted back to 1.14.2:

268717902-c433017d-1f9a-4cdc-9192-aa6224f0124a

We don't actually run MongoDB but provide the driver for users who wish to make MongoDB connections.

Environment

OS: Centos 8 / Debian 20.10.7
PHP: 8+
https://v80-php-info.pantheonsite.io/
https://v81-php-info.pantheonsite.io/
https://v82-php-info.pantheonsite.io/
(We're currently in the process of rolling back the MongoDB driver update on the platform, so the above phpinfo sites may or may not show 1.16/1.14)

Happy to provide any other details I can. I will say that after the update, I needed to manually install libbson and libmongoc, so my suspicion is that those updates are related.

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