Solved

SQL Translogs are very large and aren't shrinking in size.

Posted on 2012-04-12
6
220 Views
Last Modified: 2012-04-13
I do full backups of my database twice a day.  And I back up the transaction logs every 30 min.  Before last week the transaction log backups were between 1 and 10 MB depending on the number of transactions performed during the log backups.  However, last week the size grew to 500 MB and stays there even if very few transaction are performed between log backups.  I have tried shrinking and truncating the log file.  But it just jumps straight back up to 500MB.
0
Comment
Question by:vbchewie
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 40

Expert Comment

by:lcohan
ID: 37838566
What is the Recovery model of your DB(s)? Full, Simple, Bulk Logged?


"But it just jumps straight back up to 500MB" - there must be something filling that T-log as they don't grow for nothing. Can you open SSMS and check the standard "Disk Usage" report? this will show you at least when and by how much your DB files Autogrew
0
 
LVL 1

Author Comment

by:vbchewie
ID: 37838684
Full,

It looks like its currently using much less space than it has allocated.
I looked at the disk usage and in all 3 cases after the first log back up grew to the size of 4GB in the first hour and then stays there. but I still don't understand why the log backups are stuck a 500MB.  We are not a 24/7 shop database transaction drop off significantly after 6pm.  Yet the log backups stay at 500MB throughout the night.
SQL-Log.png
0
 
LVL 6

Accepted Solution

by:
SJCFL-Admin earned 500 total points
ID: 37838901
I do not see any allocations on that report. usually if space isallocated, it shows on the report.  Are you sure that the shrink ever sucessfully reduced the size?  I believe this is what lcohan was leading to.  that if it had been shrunk, you would see evidence of it on the report.  when i get a stubborn log file that does not want to shrink because of high activity, I sometimes have better luck trying t-sql commands than the gui interface.

To do that, when you get to the point on the gui to do the shring, click on click on generate script  instead.  Then cancel out of the gui and it will leave you on a panel with the shrink command.  (So i am lazy. yes i could have typed it ...)

If I have transaction log backup jobs (and I always do), kick them off. then as soon as they finish, I run the script.
0
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
LVL 6

Expert Comment

by:SJCFL-Admin
ID: 37838915
And this is assuming that you did check to make sure that the allocations on the files properties page had not been tampered with and increased to cause the larger size. Someone could have changed the log size allocation increase thinking it was the data by mistake...
0
 
LVL 1

Author Comment

by:vbchewie
ID: 37839026
Sorry I crop it.  Here is a new pick.  Okay so I check the initial size and it is 4GB so that explains why the logfile increases in size.  As you can see from the picture the transaction log usage is growing fast.  I checked the Batch Requests / Sec and it is hanging out around 6000 and 8000.  I think it usually around more like 800 to 1000.  How do I find out where this massive amount of request are coming from.Data Usage Auto Growth
0
 
LVL 6

Expert Comment

by:SJCFL-Admin
ID: 37839119
Check to see if you have a maintenance jobs running at that time.  i have seen this happen when somone includes index rebuilds or reorgs and does not allow for transaction log backups in between.
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have written a PowerShell script to "walk" the security structure of each SQL instance to find:         Each Login (Windows or SQL)             * Its Server Roles             * Every database to which the login is mapped             * The associated "Database User" for this …
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question