Skip to main content

How much is my database using?

Open your database and look at the Usage tab. It draws four graphs, Memory, CPU, Storage and Connections, for the last hour, the last 24 hours or the last 7 days. Each graph shows what your database used against what its tier gives it, so you can see how close it is to a limit before that becomes a problem.

Where to find it

Open your database, then the Usage tab, the second tab after Overview. A database that is still on the waitlist has no Usage tab. The tab has a switch with three periods: 1 hour, 24 hours and 7 days. 24 hours is the one it opens on. When you choose another period, the address of the page keeps it, so a link to the page opens on the same period. Reading usage costs nothing and changes nothing about your database.

Memory

Each point is the highest memory your database used during a short stretch. Memory the system can free by itself, such as file cache, is left out, so the line follows what your database really holds. The title line above the graph says it in one sentence:
Peak is the highest point of the period you chose, read against the limit your database had at that point. Now is the latest point, and it is shown only when that point is at most 15 minutes old. Otherwise only the peak is shown. The dashed line labelled Tier limit is the memory your tier gives the database.

CPU

Each point is the average share of processor time your database used during the same stretch. When your tier has a processor share, 100% is the whole share of your tier, not the whole machine, and the line is read against it:
When no processor share applies to your database, 100% is one processor, and the title line says so:
Hover over the graph to see the average and the highest value of a point. A point with no figure is left out of the average, never counted as zero.

Storage

The graph shows how much space your data takes, against the storage included in your tier:
When the latest point is not fresh, the line starts with Peak:
The figure is the same size that the platform uses for its own included-storage check. Included storage is the amount that is part of your price. It is not a limit that blocks you: the figure above is past the included amount, and nothing stops. See what a plan’s limits mean. The dashed line is labelled Included storage. When your database has stayed near a limit for a long time, or has grown past its included storage, a message above the tabs says so. It is computed from the same readings these graphs draw. See the near-limit message. To move to a higher tier, write to us.

Connections

The graph shows how many connections your database had open, against the most you can open at once:
97 is the real maximum for your database. It is lower than the number the database server is set to, because a few connections are kept for the platform itself. Those connections, and the ones the platform opens for its own backups, archiving and health checks, are left out of the figure, so the number is only your own application’s connections. The dashed line is labelled Connection limit. Connections are not measured for MySQL databases.

While your database is stopped

A database that is stopped is not measured. A database the console shows as Suspended is stopped in this sense: it is suspended when your wallet balance is too low to keep it running, and topping up resumes it. See how to get your data back for the cause and the way back. Its graphs keep the figures from before, and the line above each graph says so:
A line under the graphs says since when:
If no time is known, it says only Stopped. A stretch with no figure is a gap in the line, never drawn as zero. When you hover over a gap, the panel says:
An app that uses a stopped database cannot deploy, restart or save its variables until the database runs again. What the app shows, and how to detach the database from it, is under when the attached database is stopped or deleted.

Now and refresh

Now is the latest point, not a live reading. A line under the graphs says how fresh the figures are:
The tab refreshes itself while you keep it open. If a refresh fails, the figures stay and the line says so:

When there is nothing to show

A database that was never measured, for example a new database, shows:
A database that was stopped before it was ever measured shows Not measured while stopped, and Figures appear about 5 minutes after the database is resumed. A database that has figures, but none in the period you chose, shows No figures in this period. where the title line would be. If the tab cannot load, it says so and offers a Try again button. The wording of that message is the same for apps and databases and is given on the app usage page. If the tab says:
the database does not exist, it is being deleted, or it is not yours.

What the tab does not show

There is no replica on this tier, so there is nothing to graph for one. Backups are not drawn here: they are shown on the Overview tab of a running PostgreSQL database, under Backups. See how to get your data back.

Who can see it

Only you can see the usage of your database. Someone else asking for it gets the same answer as for a database that does not exist.