> For the complete documentation index, see [llms.txt](https://documentation.2pintsoftware.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.2pintsoftware.com/mom/monitoring-and-reporting/statistics-and-performance-counters.md).

# Statistics and performance counters

MOM shows its statistics in three places. All are on by default.

| Where                                 | Setting in the editor                   |
| ------------------------------------- | --------------------------------------- |
| Statistics page and StifleR dashboard | **Enable database storage**             |
| Windows performance counters          | **Enable Windows Performance Counters** |
| .NET event counters                   | **Enable DotNet Event Counters**        |

## Statistics page

Open this address in a browser on the MOM server:

```
https://<mom>:8088/stats
```

The page only answers on the MOM server itself. It has a reset button.

## Windows performance counters

In Performance Monitor, add counters from the `StifleR.Mom` category.

| Counter                            | Description                                                |
| ---------------------------------- | ---------------------------------------------------------- |
| `total-bytes-received-external`    | Bytes fetched from origin servers                          |
| `total-bytes-received-local-file`  | Bytes served from MOM's own copy                           |
| `total-bytes-received-peer`        | Bytes MOM collected from peers                             |
| `ci-passed-peer-able-data-bytes`   | Bytes of content that clients received CI for              |
| `request-handled-local-ci`         | Requests answered with CI                                  |
| `request-hooked-client-total`      | Downloads MOM started saving                               |
| `request-hooked-client-completed`  | Downloads MOM saved completely                             |
| `request-ignored`                  | Requests forwarded without handling                        |
| `request-ignored-filter`           | Forwarded because of a filter setting                      |
| `request-ignored-method`           | Forwarded because the method is not GET or HEAD            |
| `request-ignored-both-bc`          | Forwarded because the origin supports BranchCache          |
| `open-sockets-total`               | Open connections                                           |
| `possible-lingering-sockets-total` | Connections that may be stuck                              |
| `average-restart-job-bytes`        | Average bytes lost when a BITS job was restarted from zero |

What to watch:

* A high `total-bytes-received-external` compared with `ci-passed-peer-able-data-bytes` means little is shared. Check the filters and BranchCache on the clients.
* `open-sockets-total` that keeps growing without more load.

## .NET event counters

Install `dotnet-counters`. Find the process ID with `dotnet-counters ps`, then:

```
dotnet-counters monitor -p <PID> --counters TwoPintSoftware-StifleR.Mom-PerformanceEventCounter
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.2pintsoftware.com/mom/monitoring-and-reporting/statistics-and-performance-counters.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
