Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


T-Log Growth (sp_repldone not running)


T-Log Growth (sp_repldone not running)

Author
Message
aahale
aahale
Grasshopper
Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)

Group: General Forum Members
Points: 20 Visits: 224
Recently I encountered an issue where the transaction logs in my production databases have been growing up to 1 TB and I have not been able to shrink them. After some initial investigation I found that the log_reuse_wait_desc in sys.databases is REPLICATION for all databases in question. This made sense as these databases are set up for transactional replication. I then executed sp_repldone as many online resources suggest and that cleaned up the transaction log. However, the issue keeps resurfacing so running sp_repldone once a day is far from a permanent solution.
It is my understanding that the log reader agent is responsible for running sp_repldone on a regular basis. However, I do not see this happening when I run a profiler trace on the server. Does anyone know how the log reader agent calls sp_repldone or why it isn't running? Any insight would be appreciated.

Server - SQL Server 2008 R2 SP1 Enterprise Edition
GilaMonster
GilaMonster
SSC-Forever
SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)SSC-Forever (47K reputation)

Group: General Forum Members
Points: 47235 Visits: 44375
Is the log reader agent running? Are the replication publications working?


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


aahale
aahale
Grasshopper
Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)Grasshopper (20 reputation)

Group: General Forum Members
Points: 20 Visits: 224
Yeah, the log reader agent is running. I did try restarting it but that didn't help. Everything is syncing like it should keeping tables on the subscriber up to date.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search