bugsnag / bugsnag-laravel

BugSnag notifier for the Laravel PHP framework. Monitor and report Laravel errors.
https://docs.bugsnag.com/platforms/php/laravel/
MIT License
876 stars 129 forks source link

Double Travis' PHP memory limit #394

Closed imjoehaines closed 4 years ago

imjoehaines commented 4 years ago

Goal

Travis is failing due to composer running out of memory when installing. This PR doubles the PHP memory limit, which still keeps us safely below the 7.5GB Travis has

This seems to have been exclusively affecting Laravel 5.1 on PHP 5 — Laravel 5.1. on PHP 7 installed fine and later versions of Laravel also worked on PHP 5

Review

For the submitter, initial self-review:

For the pull request reviewer(s), this changeset has been reviewed for:

GrahamCampbell commented 4 years ago

If composer is being very memory hungry, it is possible to enable the PHP garbage collector. It will make little but some different to memory usage, but will make composer ~4x slower... Which is why composer turns off the garbage collector before resolving dependencies.