Monitor WordPress AI workloads with Kinsta APM and server logs


With the introduction of the Abilities API and the AI Client, WordPress has evolved into a true execution engine, bridging your applications with the AI models of your choice.

This monumental shift changes what the CMS is at its core. However, it also adds a layer of complexity to the overall ecosystem, making process observability and performance monitoring increasingly vital to managing a modern website.

Today, we’re not just here to tell you how important it is to monitor your site’s behavior as machines become more present (or intrusive) in your access logs. Instead, we want to give you clear, concrete proof of how these new AI features directly impact your site’s resources.

To do this, we’ll leverage two MyKinsta tools: Kinsta APM—our application performance monitoring tool—and server access logs. Both features are available to all Kinsta clients at no extra cost.

Curious to see how much AI is actually impacting your WordPress site? Let’s dive in!

How to monitor AI workloads in WordPress

Your site interacts with AI in several ways. These range from AI bot and crawler scans to operations performed internally by plugins via the AI Client, to requests made by external applications and AI agents querying your site through the Abilities API.

Consider the time required to generate an image or transcribe an audio file. These AI operations often take several seconds to complete. During this time, a PHP worker/thread is unavailable for other operations, whether triggered by a human user or a machine.

While this might not be an issue for every site, it becomes a critical factor to monitor carefully for high-traffic business sites and e-commerce stores with hundreds or thousands of products.

An Application Performance Monitoring (APM) tool helps you accurately measure the impact of AI on your WordPress site.

You could use a tool like New Relic to keep track of WordPress transactions, hooks, plugins, themes, database queries, external requests, and everything that helps you pinpoint performance issues.

Kinsta users have access to a free Application Performance Monitoring tool directly available inside the MyKinsta dashboard.

A screenshot sowing the landing page of the APM took in MyKinsta.
Enabling the Kinsta APM tool in MyKinsta.

To enable Kinsta APM, navigate to Sites > sitename > APM and click Enable. Select your desired interval and let the tool record your site’s activity.

When the monitoring is complete, you’ll receive an automated email with a link to the results page, where you can dive into detailed charts covering transactions, plugins, themes, hooks, slow database queries, and external requests.

Slowest external requests tab in Kinsta APM
Slowest external requests tab in Kinsta APM

Access and error logs are another goldmine of insights into what is happening under the hood. Typically, you can access server logs through your hosting control panel or within your server’s file system via FTP or SSH.

These logs provide comprehensive data to troubleshoot errors, identify performance bottlenecks, and pinpoint your primary traffic sources.

Kinsta users can download log files directly from the server via SFTP or SSH, or through the MyKinsta File manager. You can also inspect error, cache, and access logs directly using the MyKinsta Log viewer.

access.log file in the MyKinsta Log viewer.
access.log file in MyKinsta Log viewer.

In the following sections, we’ll analyze an AI operation to help you understand how to measure the impact of AI usage on your website and why it requires robust infrastructure and proper monitoring.

Let’s look at a real-world example by asking an AI model to generate a featured image for a blog post.

Leave a Reply

Your email address will not be published. Required fields are marked *

Prove your humanity: 10   +   8   =