Log size growing very fast

  • Hi!,

    Need Help,

    I have SQL 2008 R2, Database XYZ in simple recovery mode, the database log is growing very face, no maintenance in place, the log size grows about 1GB everyday,

    Regards,

  • bubby (3/3/2014)


    Hi!,

    Need Help,

    I have SQL 2008 R2, Database XYZ in simple recovery mode, the database log is growing very face, no maintenance in place, the log size grows about 1GB everyday,

    Regards,

    What is the Free space in the log file ? Do you know what causes this growth ..

    --

    SQLBuddy

  • Take a read through this, identify why it's growing. Post back if you need further help once you've identified the root cause

    http://www.sqlservercentral.com/articles/Transaction+Logs/72488/

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • How can I find it, space is at auto growth 10%

  • bubby (3/3/2014)


    How can I find it, space is at auto growth 10%

    Rt Click on DB --> Tasks --> Shrink --> Files --> Change File Type to Log , Check the Free space and cancel the window. Don't Click OK.

    Read the article by Gail for better understanding ..

  • GilaMonster (3/3/2014)


    Take a read through this, identify why it's growing. Post back if you need further help once you've identified the root cause

    http://www.sqlservercentral.com/articles/Transaction+Logs/72488/

    Read through Gail's article. We can't see your environment, and this will help you understand what may be going on.

  • Currently Allocated 5939.19 MB

    Available Free Space 156.59 (2%)

  • It is showing

    XYZ Simple Replication,

    Can I get a syntax to change it to CHECKPOINT, as I am not using replication

  • You need to remove replication from this database. If you don't have replication running, the log can't clear.

  • bubby (3/3/2014)


    Currently Allocated 5939.19 MB

    Available Free Space 156.59 (2%)

    bubby (3/3/2014)


    It is showing

    XYZ Simple Replication,

    Can I get a syntax to change it to CHECKPOINT, as I am not using replication

    I'm not quite sure what this is saying. You either have an open transaction preventing the transaction log from freeing up, replication and/or CDC enabled but the sql agent jobs are stopped or disabled.

    Issuing a checkpoint wont work if the log entries are marked for replication.

  • so replication is not the reason for the log growth, that what you mean correct

  • Yes, replication may be the rest for log growth. If replication was set up, and you have publications in this database, and replication was just let go, with subscribers turned off, the replication setup is preventing the log from clearing in simple mode.

    You must remove replication from this database to allow checkpoints to clear the log.

  • How to do that? I have no replication set up, I do not see any Local Publications,

  • bubby (3/3/2014)


    How to do that? I have no replication set up, I do not see any Local Publications,

    If you don't have replication, run this query and check the result ..

    SELECT [log_reuse_wait_desc]

    FROM [master].[sys].[databases]

    --WHERE [name] = N'DB_Name';

    Also how big are you expecting the log file to be .. Is 5 GB too big for your environment ?

    You need to pro actively size the log file for the future growth too so as to prevent log file fragmentation.

    --

    SQLBuddy

  • As Mystery mentioned, do you have CDC (Change Data Capture) enabled? If so, it could be your culprit as it used replication behind the scenes).

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

Viewing 15 posts - 1 through 15 (of 21 total)

You must be logged in to reply to this topic. Login to reply