Contact Us 1-800-596-4880

Generate Apps Diagnostics and Analyze with Einstein

You can generate diagnostics for your CloudHub apps and run an AI-powered analysis with Einstein. Use one of these options:

Understanding Diagnostics

Diagnostics display the Java thread dump of each CloudHub worker in each deployment. These indicate the current state of the server, which is helpful for debugging and support. CloudHub diagnostics include the Diagnostic Information Analysis File (DIAF).

The DIAF is a structured, standardized plain-text file. It centralizes diagnostic data and organizes it for improved automated and manual analysis. The DIAF captures the state of events, operations, and critical application data. See Mule Troubleshooting Plugin.

Diagnostics aren’t available for apps on Mule versions earlier than 3.8.0 (excluding 3.7.4).

DIAF is available for applications running on these Mule versions:

  • 4.6.23 and later 4.6.x versions

  • 4.9.10 and later 4.9.x versions

  • 4.10.x and later

Without DIAF, CloudHub gives you a text file: appName-instance-instanceId-workerNumber-diag.txt. When DIAF is included, you get a .zip file instead. Open the file in a text editor or unzip the archive as needed.

Download Diagnostics from Runtime Manager

To download diagnostics from Runtime Manager:

  1. In the Deployments section, select the date and worker for which you want to download diagnostics.

  2. Click the download icon for the worker.

  3. Select Diagnostics.

To download a diagnostics file directly, use this URL:

api/v2/organizations/{{orgId}}/environments/{{envId}}/applications/{{appName}}/instances/{{instanceId}}/diagnostics

Analyze Diagnostics with Einstein

Before analyzing diagnostics with Einstein:

Run Analyze with Einstein

To run and download the Einstein analysis:

  1. From Anypoint Platform, select Runtime Manager > Applications.

  2. Select the app name.

  3. In the navigation menu, select Logs.

  4. In the Deployments section, select the date and worker for which you want to run the analysis.

  5. Click the download icon for the worker and select Analyze with Einstein.

  6. After the process completes, click the download icon to download an .html file containing the analysis.

Generate Diagnostics with MuleSoft Diagnostics Agent

On the Runtime Manager Diagnostics page, run the MuleSoft Diagnostics Agent to generate diagnostics on demand for a chosen instance. Download the diagnostics for manual inspection, or Analyze with Einstein (or both).

  1. From Anypoint Platform, select Runtime Manager > Applications.

  2. Select the app name.

  3. In the navigation menu, select Diagnostics.

  4. Select an active instance from the dropdown list.

  5. Click the Analyze & Troubleshoot dropdown. You have these options:

    • Select Generate Mule Diagnostics to generate and download the diagnostics for manual inspection.

      1. Click Download to download the Mule diagnostics files.

    • Select Analyze with Einstein to generate the Mule diagnostics and run the analysis simultaneously.

      1. Click View Analysis to open the analysis page.

Generate Mule Diagnostics

When you choose Generate Mule Diagnostics and click Download, you get a .zip file. The archive contains:

Mule Thread Dumps

A thread dump is a snapshot of all the threads in an instance that shows the current state of the server.

Diagnostic Information Analysis File (DIAF)

Unresolved include directive in modules/ROOT/pages/ch-diagnostics-agent.adoc - include::partial$diagnostics-agent.adoc[]

The DIAF doesn’t replace application logs.

Considerations and Limitations

The MuleSoft diagnostics agent uses Einstein generative AI. Limits for running analyses apply per application and per organization:

  • 10 analyses per application, per hour

  • 50 analyses per organization, per hour

  • 50 analyses per application, per day

  • 200 analyses per organization, per day

CloudHub retains Mule diagnostics for 30 days or up to 150 MB.