Skip to main content

Performance Views: Ongoing Task Stats

The Ongoing Task Stats view

The Ongoing Task Stats view draws a separate activity track for each monitored task and each replication connection, over a shared time axis.
Stats > Ongoing Task Stats

The Ongoing Task Stats view

  1. Stats
    Open the Stats menu.

  2. Ongoing Task Stats
    Open the Ongoing Task Stats view.

  3. Filter
    Enter a string to show only the tracks whose names contain this string.

  4. Expand all
    Expand every track to show the duration of the operations performed by each task.

  5. Export
    Save the collected activity to a JSON file.

  6. Import
    Load a file saved by Export and draw the exported activity in the graph.
    The view stops recording while an imported file is displayed.
    Close import returns the view to the live graph.

  7. Data buffer usage
    The share of the view's buffer in use.
    When the buffer fills, recording stops and Studio asks you to clear the graph.

  8. Monitoring (tail -f)
    Keep the graph scrolled to the newest data.

  9. Clear graph
    Clear the graph and empty the Filter box.
    Plotting resumes as new data arrives, with all tracks collapsed.

  10. Overview strip
    The whole recorded period at a glance.
    The line's height shows how many operations were running at each moment.
    Drag the pointer across the strip to select a time range.

  11. The graph
    The graph area, where activity tracks are drawn one under another over a single time axis, one track per monitored task or replication connection.
    Operations are plotted on the tracks as bars, each bar positioned at its operation's start time, spanning the operation's duration.

    • A collapsed track shows a single row of operation bars.
    • Expanding the track adds a row for each level of nested operations, so the steps that make up each operation become visible, and hovering over the bars can reveal additional details.
  12. The track label
    The label shows the task type followed by the track name.
    Click the arrow at the label's left to expand or collapse the track.
    A task's track is named after the task.
    An outgoing replication connection's track is named with the URL of the destination database, and an incoming connection's track with the URL of the source database followed by the source database's ID.

Selecting a time range

To examine a specific activity period closely, stretch and slide a time range frame across the overview strip. The graph will then plot only the selected range.
Rolling the mouse wheel over the graph zooms in or out as well, and turns off Monitoring (tail -f).

A time range selected in the overview strip

  1. Clear selection
    Expand the selection to the entire recorded period.

  2. The selected range
    The part of the recorded period the graph plots.
    You can resize the selection frame by clicking and dragging its edges, or click within the selected area and slide the frame along the strip.

  3. Data outside the selection
    Data recorded outside the selected range still appears in the strip, but is left out of the graph.

  4. The time axis
    The time labels cover only the selected range.

Skipped idle periods

The time axis does not run at a constant rate: a period of more than ten seconds with no task activity is skipped, so consecutive time labels can jump forward by minutes.
The labels are spaced at even distances along the axis, not at even time intervals, so zooming into a short time range may display several labels sharing the same second.

A skipped idle period

  1. Gap line
    A solid purple line marks each skipped time period.
    Hovering over the line shows the period's start time and duration.

  2. Grid line
    A dashed line runs down from each time label. These lines mark the axis only, and carry no information about task activity.

Activity tracks

Expanding a track

Click an activity track's label or one of its operation bars to expand or collapse the track.

Two expanded tracks

  1. Collapse all
    Collapse all tracks. This button replaces Expand all once all tracks are expanded.

  2. Track arrow
    The arrow indicates whether the track is expanded or collapsed.

  3. The eye icon
    Opens the task's transformation script or query.
    Learn below about the script or query preview.

  4. The track's operation bars
    The framed track shows one batch replicated by an external replication task to the destination database.
    The top bar represents the entire batch, and the lower bars represent operations performed by the task while handling this batch.

Operation bars

Hovering over an operation bar displays the properties recorded for the operation.
The images below show the popups of a RavenDB ETL track, in the scope of a single batch.

The popups of an expanded RavenDB ETL track

The popup for the top bar reports the properties of the batch as a whole: the total duration, the reason the batch ended, the memory the server allocated to the task, and the size of the data the batch carried.

The popup for a lower bar reports the duration of a single operation and the figures the operation produced, e.g., the number of items extracted or the speed at which the transformation script processed them.

The properties reported in the popups differ from one task type to another.
A dedicated article describes the properties reported for each task type,
e.g., RavenDB ETL Stats or Subscription Stats.


A triangle marks an operation that ended with errors.
For an ETL task, the error popup names the failing stage (transform or load) and references the notification center where additional details are available.

The error marker on a RavenDB ETL task's bar

Operations in progress

Striped bars mark operations that are still running, animating the stripes while the operations continue.
The bars turn solid once the operations complete.

Striped bars for running operations, beside solid bars for completed operations

Script or query preview

An ETL task's track lists each transformation script below the track label, and a data subscription's track lists the subscription query.
Click the eye icon beside the script or query name to open a preview.

The preview of an ETL transformation script

The preview names the task and the transformation script, lists the collections the script runs on, and shows the script itself.

What is monitored

Tasks

An activity track is drawn for each of the following ongoing tasks:

Monitored taskTracks
ETL tasksOne track per task, for every ETL type: RavenDB, SQL, Snowflake, OLAP, Elasticsearch, Kafka, RabbitMQ, Azure Queue Storage, and Amazon SQS.
Embeddings generation and GenAI tasks are reported as ETL tasks as well.
Queue sinksOne track per task: Kafka, RabbitMQ, and Azure Service Bus.
CDC sinksOne track per task.
Data subscriptionsOne track per subscription.
External replication tasksOne track per connection: Outgoing External Replication on the source database, and Incoming External Replication on the destination database.
Hub-sink replication tasksOne track per connection: Outgoing Pull Replication on the sending database, and Incoming Pull Replication on the receiving database.

The following articles describe the figures reported for a specific task type:
External Replication Stats
Subscription Stats
RavenDB ETL Stats
SQL ETL Stats
OLAP ETL Stats

Internal replication

Replication within the database group is not an ongoing task, but the view draws an activity track for each of its connections, incoming and outgoing, labeled Incoming Internal Replication and Outgoing Internal Replication.

Monitoring backup tasks

Backup tasks, the only ongoing tasks absent from this view, can be monitored:

  • Via Studio
    Backup tasks are listed at Tasks > Backups, with the details of each task.
    Running backup operations can be followed in the notification center, where they can also be delayed or aborted.

  • Using the client API
    To retrieve the status of a backup task after its last run, use GetPeriodicBackupStatusOperation.

  • Using SNMP endpoints
    Backup SNMP endpoints report the running backup operations, the number of enabled and active backup tasks, and the longest time any database has gone since its last backup.

The AI Task Stats view

The AI Task Stats view, opened from the AI Hub menu, is similar in every way to the Ongoing Task Stats view explained above, except for displaying only the activity of two AI task types: embeddings generation and GenAI.
AI Hub > AI Task Stats

The AI Task Stats view

  1. AI Hub
    Open the AI Hub menu.

  2. AI Task Stats
    Open the AI Task Stats view.

In this article