---
title: "Get cache statistics"
method: GET
path: "/api/v1/caches/stats"
tags: ["Cache Management"]
---

# Get cache statistics

`GET /api/v1/caches/stats`

Returns JVM memory information and per-provider per-region cache statistics including hit counts, miss counts, and memory usage.

## Response `200`

Cache statistics retrieved successfully

- ResponseEntityCacheStatsView
  - `errors` ErrorEntity[]
    - `errorCode` string
    - `message` string
    - `fieldName` string
  - `entity` CacheStatsView
    - `clusterId` string, required — Cluster identifier (shared across all nodes in the cluster)
    - `serverId` string, required — Server identifier (unique per node — identifies which node reported these stats)
    - `serverName` string, required — Server hostname
    - `memory` JvmMemoryView, required — JVM memory statistics
      - `maxMemory` integer, required — Maximum memory the JVM will attempt to use (Xmx)
      - `allocatedMemory` integer, required — Total memory currently allocated by the JVM
      - `usedMemory` integer, required — Memory currently in use (allocated minus free)
      - `freeMemory` integer, required — Available memory (max minus used)
    - `providers` CacheProviderStatsView[], required — Per-provider cache statistics
      - `providerName` string, required — Cache provider display name
      - `columns` string[], required — Ordered list of stat column names reported by this provider
      - `stats` object[], required — Per-region statistics, each row keyed by column name
  - `messages` MessageEntity[]
    - `message` string
  - `i18nMessagesMap` object
  - `permissions` string[]
  - `pagination` Pagination
    - `currentPage` integer
    - `perPage` integer
    - `totalEntries` integer

## Other responses

- `401` — Unauthorized - authentication required
- `403` — Forbidden - requires maintenance portlet access

---

[API](https://skmtc.dev/jostens/apis/dotcms-rest-api.md) · [All operations](https://skmtc.dev/jostens/apis/dotcms-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/jostens/dotcms-rest-api/revisions/a088fe9f515c/schema)
