← All articles
transaction-logconfigurationhealth-check

Too many VLFs: when the transaction log fights you

Virtual log file fragmentation slows recovery and log operations. How growth habits create VLF mess and how reviews catch it.

The transaction log is not “just a file.” Internally it is a chain of virtual log files (VLFs). Grow it poorly for years and you inherit thousands of tiny VLFs.

Symptoms

  • Slow database startup / recovery
  • Sluggish log backups
  • Restores that crawl through log apply
  • Mystery log growth behaviour after repeated small autogrowth

How it happens

Autogrowth of 1MB or small percentages on a busy OLTP log creates many VLFs over time. Nobody notices until recovery day.

What a review recommends

  1. Measure VLF count on critical databases
  2. Plan controlled log resize (shrink only with a proper method, then grow in large chunks)
  3. Set sensible autogrowth in MB
  4. Keep log backups healthy so growth is not constant crisis mode
  5. Retest recovery times after remediation

Business angle

VLF cleanup is unglamorous. It is also the kind of fix that makes RTO targets real. Health checks exist to surface unglamorous risks before an outage does.

Need hands-on SQL Server help?

Allay Data Solutions offers maintenance, tuning, and assessments from Port Elizabeth, South Africa.

Get in touch