sebastianbergmann / phpcov

TextUI frontend for php-code-coverage
BSD 3-Clause "New" or "Revised" License
223 stars 58 forks source link

Memory issues when dealing with many .cov files #100

Open tomreece opened 4 years ago

tomreece commented 4 years ago

I have almost 13GB worth of .cov files. I am trying to generate an HTML report using the command phpcov merge cov --html=all-html in a 16GB RAM environment. Specifically, I'm using CodeBuild in AWS.

Eventually I run out of memory and the generation fails. Is there a way for me to improve memory utilization? Or am I just dealing with too many .cov files?

svemir commented 1 year ago

For a while we were able to avoid this issue by splitting our test suite into more threads and increasing the amount of ram we allow for phpunit and phpcov to use. At this point we have 8 .cov files totaling over 5 gigs and we have to find a different solution. The latest version of phpcov wants more than 3 Gb to process that (previous version was able to do the same job with a 2 Gb memory limit.)

GlucNAc commented 9 months ago

I also have a memory issue with 4 408 .cov files (2,02 Go). Would it be a way to overcome this by merging a limited set of files, and then merging the resulting files, and so on recursively until only one file left?

atepam commented 6 days ago

Hi, I have the same memory issue for html format. (with 21 .cov files, sum 27M, ~700K each)