[wp-trac] [WordPress Trac] #41641: Unit testing reaching the memory limit
WordPress Trac
noreply at wordpress.org
Tue Feb 20 17:17:51 UTC 2018
#41641: Unit testing reaching the memory limit
------------------------------+-----------------------------
Reporter: Hristo Sg | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
------------------------------+-----------------------------
Comment (by danielbachhuber):
> 99% test suite completion == 3.1 GB resident memory
Interestingly, I can't reproduce this now in calling `phpunit` directly.
Maybe Blackfire injects some observing code that increases memory usage (I
can't imagine it's optimized for long-running processes).
I also tried adding `Imagick::setResourceLimit(
Imagick::RESOURCETYPE_MEMORY, 100 * 1024 );` to
`WP_UnitTestCase::setUp()`, but that didn't seem to have an impact.
TIL the difference between stack and heap memory, and how PHP doesn't have
great tooling for measuring the latter.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41641#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list