Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#33806 closed task (blessed) (invalid)

High memory usage in the unit test suite

Reported by: johnbillion's profile johnbillion Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Build/Test Tools Keywords: needs-testing
Focuses: Cc:


Running core's phpunit test suite (with the multisite flag enabled) causes PHP to use around 8GB of memory on my machine.

Let's investigate and see what, if anything, can be done.

Change History (6)

#1 @netweb
8 years ago

Running phpunit -c tests/phpunit/multisite.xml here just now PHP memory peaked at 237mb

Config: Locally installed PHP 5.6 via Home Brew, PHPUnit 4.7.7 via Composer

Version 0, edited 8 years ago by netweb (next)

#2 @jeremyfelt
8 years ago

Mine peaked at 232MB in a VM with 1GB memory. PHP 5.5.9, PHPUnit 4.3.5. I need to update my VM... :)

#3 @nofearinc
8 years ago

phpunit -c tests/phpunit/multisite.xml consumed 225MB here. PHP 5.6.12, PHPUnit 4.8.6 on Fedora 22.

#4 @wonderboymusic
8 years ago

  • Keywords ongoing added

This ticket was mentioned in Slack in #core by netweb. View the logs.

8 years ago

#6 @johnbillion
8 years ago

  • Keywords ongoing removed
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Turns out this is a local issue.

See also #33968

Note: See TracTickets for help on using tickets.