WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#33806 closed task (blessed) (invalid)

High memory usage in the unit test suite

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

Description

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
6 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 on Mac OS X with 16gb RAM

Last edited 6 years ago by netweb (previous) (diff)

#2 @jeremyfelt
6 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
6 years ago

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

#4 @wonderboymusic
6 years ago

  • Keywords ongoing added

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


6 years ago

#6 @johnbillion
6 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.