PHP memory size


#1

Hello,

I have a memory problem with my tests, getting the following error :

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 987136 bytes) in /home/ubuntu/.composer/vendor/sebastian/exporter/src/Exporter.php on line 264
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 987136 bytes) in /home/ubuntu/.composer/vendor/sebastian/exporter/src/Exporter.php on line 264

I have no idea what I can do to debug that. I guess I should, if possible, use more RAM. But is this possible? How can I investigate this?

Regards


#2

Hi all.

Found the problem. phpunit didn’t have enough memory.

Could fix it using phpunit -d memory_limit=512M in the test:override section of my circle.yml file.

Hope this can help someone !

Regards


#3

Thanks for sharing your solution.


#4

That worked. Thanks.


#5

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.