WordPress.org

Make WordPress Core

Opened 4 weeks ago

Last modified 4 weeks ago

#47292 new defect (bug)

Heartbeat API cause Apache/PHP to exhaust memory

Reported by: mailandguardian Owned by:
Milestone: Awaiting Review Priority: normal
Severity: critical Version: 5.2
Component: Administration Keywords: needs-patch
Focuses: performance Cc:

Description

WordPress 5.2
Apache/2.4 MPM Prefork (Debian9)
PHP 7.0 Also tried upgrading to PHP 7.2

What you expected to happen:
Apache memory footprint should remain stable.

Steps to reproduce:
Install click-to-deploy-images-wordpress-ha from Google Marketplace.
Upgrade to WordPress 5.2
Import and edit some posts in WordPress Admin
Observe Client side: Examine headers in Chrome Console specifically /wp-admin/admin-ajax.php
Observe Server side on Admin VM : Monitor apache memory with: free -m or htop

Tried:
Upgrading to PHP 7.2.
Tweaks in wp-config.php
define( 'AUTOSAVE_INTERVAL', 600 );
define( 'WP_POST_REVISIONS', false );
define( 'MEDIA_TRASH', true );
define( 'DISABLE_WP_CRON', true );
define( 'WP_MEMORY_LIMIT', '256M' );

Attachments (1)

Screenshot 2019-05-16 at 13.08.00.png (115.9 KB) - added by mailandguardian 4 weeks ago.
Memory Footprint

Download all attachments as: .zip

Change History (2)

#1 @SergeyBiryukov
4 weeks ago

  • Component changed from General to Administration
  • Focuses performance added

Related: #26050

Note: See TracTickets for help on using tickets.