Transaction Log Growth: Read the Cause, Not the Size

Transaction Log Growth: Read the Cause, Not the Size

You open a database whose log file jumped overnight, and you want one thing: what caused this transaction log growth? In Database Health Monitor the page is Log Growth and Log Backups, and it gives a verdict per growth. Read the Cause column before the size column. A 40 GB step with a cause attached is a finding. A 40 GB step on its own is just a scare.

How do I find the cause of transaction log growth in SQL Server? Compare each growth with the log backup history, the open transactions and the heavy writers around it. The cause is usually late or stopped log backups, a long open transaction, or a large write such as an index rebuild. When none of those show up, the growth is ordinary workload.

Reading transaction log growth from the top down

Log Growth and Log Backups is one of the reports in Database Health Monitor. It runs against your own servers, and it takes about a minute to have this same screen open on one of them.

Start with the headline sentence. It counts the growths in your window, totals the gigabytes, and splits the count by cause. Something like six growths in thirty days, four of them while log backups were late. That split tells you where to spend the next ten minutes.

Then the chart. It draws every log file of the database added together as one step line, so a second .ldf cannot hide a step. The red bands are spans where the log backup target from Backup SLA was missed. An orange ring marks each growth episode. A small purple square above a ring means an open transaction was found. A green one means a large write was found.

Why not start with the tallest step? Because height says how bad, and never why. Ring position against red band says why, and it does so before you read a single row.

The grid, in the order to read it

Rows run newest first. Read left to right, but give the columns different weight.

ColumnWhat it answersHow much to trust it alone
CauseWhich of four explanations appliedHighest. Read it first.
EvidenceThe proof: an interval, a session, a statement, a rebuildHighest. It is what you can act on.
Grew by and size afterHow big the step was and where the log ended upMedium. Size without a cause misleads.
GrowthsHow many separate size increases made up the episodeMedium. Many small steps point at a small growth setting.
StartedWhen the episode beganNeeded to line up against your own schedules.

An episode is a cluster. Growths less than two hours apart are folded into one row, so a single bad night does not become forty lines. The page compares each recording with the one 15 minutes before it, which is how it spots the step in the first place.

What a healthy log looks like

Few rings. Rings sitting outside the red bands, or no red bands at all. The headline says most growths came from workload, or from a large write you already know about, like the Sunday index rebuild. Growth that lands on a maintenance night and clears afterward is the log doing its job.

Workload growth is the fallback label, and it is not a diagnosis. It means none of the three named causes showed up. If the same database keeps landing there, size the log for it and move on.

What a log that needs action looks like

Rings inside red bands. That is the clearest signal on the page. Look at the evidence cell: it gives the start of the missed interval, how long it lasted or that it is still open, and the reason that was recorded. A backup job that failed once is a different conversation from one that has been stopped since Friday.

The next pattern is a purple square. The evidence names the session, the login and the statement. Either a request began before the look back window and was still running, or a head blocker sat idle in an open transaction. The look back is your log backup target, or two hours when you have set none, and never more than a day. Find the owner of that login and the story is mostly told.

A green square names a large write: an index rebuild, a request that wrote a million pages or more, or a program writing at least three times its normal volume. Several rows on one episode is normal. Late backups and a rebuild often travel together, because a rebuild is exactly the load that a late backup cannot absorb.

Read the gray rows last. They hold advice for the causes that occurred, then notes about what this read could not see. Treat a missing source as a gap in the evidence, not as a clean bill of health.

Where to go after the verdict

The last column points to the report that shows more of that cause. For late backups that is Backup SLA. For open transactions it is Long Running History or Blocking Culprits. For rebuilds it is Structure Change Log. File Size Over Time, VLFs, Log Write Pressure and Autogrowth and Shrink Events round out the neighborhood. If the growth episodes were slow rather than big, Log Write Latency: Is Your SQL Server Getting Slower? covers the other half of the log story.

Two limits are worth knowing. The page never states a log_reuse_wait_desc value, because that history is not collected. And in a database using SIMPLE recovery there are no log backups, so the late backup test is skipped while the other two still run.

The 7 days / 30 days / 90 days buttons switch the window without a new read, since the page reads 90 days once. Right click the grid to export or copy the episodes. Nothing here adds collection load: it reads DBHealthHistory on the instance you are connected to. The Log Growth and Log Backups documentation has the full reference.

What to check on your own server

  • Compare the start time of each log growth with the log backup target in your Backup SLA policy
  • Read the evidence on any open transaction row for the session, login and statement involved
  • Check the DDL audit for index rebuilds that ran on the nights the log grew
  • Switch the window from 30 to 90 days and see whether the same cause repeats
  • Read the gray notes under the grid to learn which history sources were missing

Try Database Health Monitor Today

It names the cause of every log file growth, so you stop guessing between late backups, an open transaction and a big write. Database Health Monitor shows it on every instance you connect, in the time it takes to open the report.

Download Database Health Monitor and run the Log Growth and Log Backups report against your own server. There is nothing to configure first, and you will know inside a few minutes whether it tells you something you did not already know.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

To prove you are not a robot: *