How much memory and processor is my app using?
Open your app and look at theUsage tab. It draws two graphs, memory and
processor, for the last hour, the last 24 hours or the last 7 days. Each graph
shows your app’s use against what its plan gives it, so you can see how close
the app is to its limit before it becomes a problem.
Where to find it
Open your app, then theUsage tab, the second tab after Overview. 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 app.
Memory
The memory graph is drawn first, because memory is what stops an app. Each point is the highest memory your app used during a 5 minute stretch. Memory the system can free by itself, such as file cache, is left out, so the line follows what your app really holds. The line is drawn against the memory of your app’s plan, in MB or GB. The title line above the graph says it in one sentence:Peak is the highest point of the period you chose, and it is read against the
limit your app 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.
CPU
The CPU graph is drawn below memory. Each point is the average share of your plan’s processor time that your app used during the same 5 minute stretch.100% is the whole share of your plan, not the whole machine. Hover over the
graph to see the average and the highest value of a point.
Average is the average of the points that have a figure. A point with no figure
is left out of it, never counted as zero.
The Plan limit line
Both graphs carry a dashed line labelledPlan limit. On the memory graph it is
your plan’s memory. On the CPU graph it is the line at 100%, your plan’s whole
processor share.
If you change your app’s plan, the memory limit line steps up or down at the
moment of the change. Older points stay read against the limit that applied then,
so a peak from before a change is never compared with a limit it was not held to.
Slowed down
When your app asks for more processor time than its plan’s share, it runs slower. It keeps running and it is not restarted. The CPU graph shows these stretches as an amber band behind the line, with a key under the graph:Gaps
A stretch with no figure is a gap in the line. It is never drawn as zero. A gap means one of three things: the app was stopped, the app had not started yet, or the figures did not reach us. When you hover over a gap, the panel says:Stopped.
Marks
Small marks at the top of the graphs show what happened to your app, at the time it happened. Red marks are crashes and running out of memory. Grey marks are changes. Hover over a mark to read it. Each sentence ends with the time, in your own time zone, with its name:You are the ones where you did it yourself, from
the console. The others are shown without a name when nobody is named. In the
memory sentences, ... stands for the memory your app’s plan gave it at that time,
which the console shows. The shorter line is shown when that was not recorded.
The process line means your app kept running.
On this tab, a crash and a restart after a crash do not show an exit code. They
read App stopped unexpectedly and App restarted after a crash. The exit code of
that crash is shown in Runtime logs, in the History view, on the line at that
time. See how long are my app’s logs kept.
When two marks are too close to tell apart on the width of your screen, they
merge into one mark that shows how many events it holds. Hover over it to read
them all, oldest first, under a title such as 2 events.
Now and refresh
Now is the latest 5 minute point, not a live reading. A line under the graphs
says how fresh the figures are:
How many points, and how precise
A point is 5 minutes.1 hour shows 12 points, 24 hours shows 288 and 7 days
shows 2,016. Figures appear about 5 minutes after your app starts.
Figures are rounded to whole MB and whole percent. A memory peak is the highest of
the samples taken during each 5 minute point, so a spike shorter than the
sampling may not show on the graph. A spike that ends the app is different: the
App stopped because it ran out of memory mark covers it.
When there is nothing to show
An app that was never measured, for example a new app that has not run for 5 minutes yet, shows:No figures in this period. where the title line would be.
If the tab cannot load, it says:
Try again button. If the tab says:
How long it is kept and who can see it
The tab shows the last 7 days. We keep the figures a little longer than you can see, 8 days, and erase the older ones. Only you can see the usage of your app. Someone else asking for your app’s usage gets the same answer as for an app that does not exist or is being deleted.What to do when your app stays near its limit
When your app has stayed near a limit for a long time, or ran out of memory, a message above the tabs says so. It is computed from the same readings these graphs draw. See the near-limit message. When the memory line stays close to thePlan limit line, or red marks say your
app ran out of memory, choose a plan with more memory. When the amber band shows
often, choose a plan with a bigger processor share. Open your app, choose More actions, then Change plan. The app takes the new plan’s resources at once, and
a running app restarts briefly to do it. The full steps, and what each plan gives,
are on what a plan’s limits mean.