Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#33806 closed task (blessed) (invalid)

High memory usage in the unit test suite

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

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
11 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 11 years ago by netweb (previous) (diff)

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

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

#4 @wonderboymusic
11 years ago

  • Keywords ongoing added

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


11 years ago

#6 @johnbillion
11 years ago

  • Keywords ongoing removed
  • Milestone Awaiting Review
  • Resolution → invalid
  • Status new → closed

Turns out this is a local issue.

See also #33968

Note: See TracTickets for help on using tickets.