Skip to content
WP Cloud
WP Cloud
    • For Hosts
    • For Agencies
    • For Registrars
    • For Native Hosting
    • Performance
    • Security
    • Real-Time Automated Failover
    • Vertical Scaling and Bursting
    • WordPress Management
    • PanelAlpha Integration: White-Label WordPress Control Panel for Hosts
    • EasyEngine Panel Integration: Visual WordPress Management for WP Cloud
    • FAQs
    • WP Cloud API
    • Partner Portal
    • Documentation
    • New Partner Guide
    • Pressable
    • Convesio
    • Porkbun
    • PanelAlpha
    • Ivapix
    • UNC Greensboro
    • Impressive Hosting
    • Blog
    • Performance Benchmarks
  • Connect With Us
  • Login ↗
Start Here ↗
  • Solutions

    • For Hosts
    • For Agencies
    • For Registrars
    • For Native Hosting
    • Featured Partners

    Features

    • Performance
    • Security
    • Real-Time Automated Failover
    • Vertical Scaling and Bursting
    • WordPress Management

    Integrations

    • PanelAlpha Integration
    • Easy Engine Panel Integration

    Resources

    • Documentation
    • WP Cloud API
    • FAQs
    • Partner Portal
    • New Partner Guide
    • Announcements
    • Changelog
  • Case Studies
    • PressableA case study about how WP Cloud supports Pressable to power millions of page views daily.
    • Convesio
    • Porkbun
    • PanelAlpha
    • Ivapix
    • UNC Greensboro
    • Newspack
    • Inverse Paradox
  • Insights
    • Podcast
    • BlogWP Cloud blog page with latest news and updates about the platform.
    • Performance Benchmarks
  • Connect With Us
  • Login ↗
Start Here ↗

Browse

    • WP Cloud platform overview
    • Onboard and launch with WP Cloud
    • WP Cloud Partner Portal
    • Get support from WP Cloud
    • WP Cloud glossary
    • API Documentation
    • Manage and secure API keys
    • Client SSH
    • WP Cloud API quick start
    • Webhooks
    • Run bulk tasks across sites
      • Manage site domains and aliases
      • Domain verification records
      • TLS certificates
      • Manage custom TLS certificates
      • Cloudflare and WP Cloud
    • Clone a site
    • Configure resources, site type, and billing with site meta
    • Delete a site
    • Persistent data
    • Staging sites
    • Migrate a site to WP Cloud
      • SSH and SFTP access models
      • Client SSH
      • User SSH and SFTP access
      • Database credentials
      • phpMyAdmin
      • ABSPATH
      • Default wp-config.php
      • Site constants
      • Configure redirects and headers with custom-redirects.php
      • Akismet and Jetpack
      • Blocked and unsupported plugins
      • PHP lifecycle and supported versions
      • Symlinks and managed software
      • WordPress versions
      • Install Composer and WP-CLI packages
      • Manage platform software with WP-CLI
      • Useful WP-CLI commands
    • Transactional email
    • WordPress multisite
    • Cron scheduling
    • Decoupled and headless WordPress
      • Edge Cache preload
      • WooCommerce cart caching
      • Page Cache
      • Edge Cache
      • Object Cache
      • Image transformation
      • Offload image sub-sizes
    • Configure lightweight 404s for static files
      • Edge Rules overview
      • Edge Rule types
      • Edge Rule conditions
      • Verify Edge Rules
      • Edge Cache preload
      • WooCommerce cart caching
      • Edge Cache
    • Edge request logs
      • DDoS protection
      • Defensive Mode
      • Rate limiting
      • Network and web application firewalls
      • Bot protection
      • Password protection
      • HTTP and security headers
      • PHP filesystem access permissions
      • Scan a site for malware
    • Backups overview
    • Create an on-demand backup
    • Restore a backup
    • Jetpack backups
      • Error logs
      • Web server logs
      • Edge request logs
    • Usage reporting
    • Metrics
    • Application performance monitoring
    • Automated failover
    • IP ranges
    • Origin and edge servers
    • Server specifications and settings
    • EasyEngine integration
    • PanelAlpha integration
      • White labelling and co-marketing WP Cloud
      • WP Cloud logos
      • Terms of Service & Compliance
      • Prohibited content
      • Copyright infringement and takedown notifications
    • WP Cloud billing
    • WP Cloud for agencies and site networks
    • WP Cloud partner support options
    • Troubleshoot Page and Edge Cache
    • Troubleshoot HTTP 429 and 599 errors
    • WP Cloud HTTP status codes
    • Troubleshoot site performance
    • Cache slow database queries
    • Troubleshoot duplicate core files, wp-config.php, and wp-admin 403 errors
    • Troubleshoot email delivery
    • Repair Yoast indexables
    • Troubleshoot PDF thumbnail generation
    • Troubleshoot TLS certificate provisioning

Updates

  • Changelog
  • WP Cloud Status
  • Announcements
Documentation/Monitoring and logs/Application performance monitoring

Application performance monitoring

LAST UPDATED

5 months ago

    WP Cloud application performance monitoring (APM) captures traces for individual requests so your team can inspect where a site spends its time. Enable trace collection for a short window, reproduce the slow request, then open the temporary APM trace viewer.

    Your team is responsible for capturing and interpreting traces and implementing site-specific fixes. Access to APM does not include WP Cloud Support performing site-specific APM investigations or performance optimization. If your findings suggest a platform fault, contact Support with the evidence collected. See Support scope for the division of responsibilities.

    Choose the APM version

    WP Cloud has two APM versions. The site’s apm_driver site meta value selects the version that collects traces for that site.

    apm_driver valueAPM versionStatus
    No value or elasticLegacy APMDefault. Deprecated, and receives only bug fixes and security updates. Support will be phased out. Not available on PHP 8.6.
    pfxPFX APMAvailable. Recommended for all sites.

    The PFX APM uses the PFX PHP extension to collect profiling data. It records more detail than the legacy APM. Its trace viewer adds filtering, search, and grouping, and you can download traces in OTLP, PFX, and speedscope formats for analysis in other tools.

    Switch your sites to the PFX APM. WP Cloud will announce a timeline for ending legacy APM support and the date the PFX APM becomes the default. The legacy APM (elastic) will not be available on PHP 8.6. When WP Cloud offers PHP 8.6, switch each site to the PFX APM before upgrading it.

    Switch a site to the PFX APM

    Warning: While apm_driver is set to pfx, the legacy APM does not create span files for the site. Any integration that reads legacy APM span files receives no data for that site. Check your integrations before you switch.

    Set the site’s apm_driver site meta value to pfx with the Site Meta endpoint. Use add when the value does not exist and update to replace an existing value:

    curl --fail-with-body --silent --show-error \
      --request POST \
      --header "Auth: ${WP_CLOUD_API_KEY}" \
      --data-urlencode "value=pfx" \
      "https://atomic-api.wordpress.com/api/v1.0/site-meta/${WP_CLOUD_SITE_ID}/apm_driver/add"Code language: JavaScript (javascript)

    Then capture traces and open the trace viewer as described in the following sections. The apm_until value, the APM URL request, and the format of the returned APM URL are the same for both versions.

    Switch a site back to the legacy APM

    Remove the site’s apm_driver site meta value, or update it to elastic:

    curl --fail-with-body --silent --show-error \
      --request POST \
      --header "Auth: ${WP_CLOUD_API_KEY}" \
      "https://atomic-api.wordpress.com/api/v1.0/site-meta/${WP_CLOUD_SITE_ID}/apm_driver/remove"Code language: JavaScript (javascript)

    Capture traces

    Set the site’s apm_until site meta value to a future Unix timestamp, written as digits only. The timestamp can be no more than about 24 hours in the future. Use a short window measured in minutes or seconds so the capture includes the request you need without collecting unnecessary traces.

    The Site Meta endpoint accepts the Atomic Site ID or domain, the apm_until key, and the add or update action. Use add when the value does not exist and update to replace an existing value:

    curl --fail-with-body --silent --show-error \
      --request POST \
      --header "Auth: ${WP_CLOUD_API_KEY}" \
      --data-urlencode "value=${APM_UNTIL_UNIX_TIME}" \
      "https://atomic-api.wordpress.com/api/v1.0/site-meta/${WP_CLOUD_SITE_ID}/apm_until/add"Code language: JavaScript (javascript)

    After WP Cloud accepts the value, visit the affected page or repeat the specific action during the capture window. Reproducing the exact request makes it easier to find the relevant trace.

    To extend the capture window, update apm_until again with a later timestamp. To end APM early, update apm_until to 0.

    Open the trace viewer

    Request a temporary APM URL for the site with the Get Site APM URL endpoint:

    curl --fail-with-body --silent --show-error \
      --request POST \
      --header "Auth: ${WP_CLOUD_API_KEY}" \
      "https://atomic-api.wordpress.com/api/v1.0/site-apm/${WP_CLOUD_SITE_ID}"Code language: JavaScript (javascript)

    The response contains a time-sensitive, tokenized URL:

    {
      "message": "OK",
      "data": {
        "url": "https://example.com/_apm/?timestamp=1738080031&nonce=<nonce>&token=<token>"
      }
    }Code language: JSON / JSON with Comments (json)

    You can generate and open this URL after trace collection ends. The site must already have captured traces for the viewer to contain useful data. Opening the URL sets an _apm_auth cookie and grants temporary access to /_apm/; treat the URL as a credential and do not share or log it.

    Examine a trace

    In the legacy APM, the Traces page lists captured requests. In the PFX APM, the Transactions tab of the Trace Explorer lists them. Select the request that matches the reproduced URL and time, then inspect the trace to find slow application work such as WordPress hooks, database queries, or external requests.

    Compare the trace with Metrics, web server logs, and error logs for the same time range. APM explains one captured request; the other sources show whether the behavior is repeated or correlated with traffic and resource use.

    Previous Metrics
    Next Automated failover

    Related Guides

    • Usage reporting

      Retrieve measured site usage, select meters, convert units, interpret forecasts, and know when recorded usage…

      4 Min.

      READ

    • Error logs

      Retrieve and summarize WP Cloud PHP errors for a site or client account, and understand…

      4 Min.

      READ

    • Metrics

      Query and interpret WP Cloud time-series Metrics for edge traffic, PHP, visitors, MySQL, and site…

      9 Min.

      READ

    On this page

      Contact support

      Contact us with Support issues and questions related to WP Cloud, the WP Cloud Atomic API, API-key IP allow list changes, Station, and more.

      Check the FAQs

      Have questions? Please visit our FAQ to learn more.

      An Automattic venture

      Work With Us

      Press

      Privacy Policy

      © 2021-2026 Automattic Inc.

      Notifications