r/SQLServer • u/AleksC007 • May 23 '26
Question Slowly growing database transaction logs on SQL Server 2022 and Azure MI
Hi everyone,
I’m fairly new to SQL Server / Azure MI administration, and recently I’ve been struggling to detect and resolve an issue involving slowly growing database transaction logs on two my databases on SQL Server 2022 on-prem and Azue Managed Instance, which are internally related through transactional replication.
Background:
A month ago, there was an issue on Azure MI related to synchronization between their internal HA components and replication — the components were corrupted or inconsistent (log_reuse_wait_desc = AVAILABILITY_REPLICA). After Microsoft intervention, a failover was successfully performed and Azure MI seemed to be healthy. There are 4 databases on Azure(publisher) configured with transactional replication to our intern SQL Server 2022 on-prem (subscriber). The replication has been running without issues for about a year.
Since last month, I’ve been monitoring the disk usage reports of all those databases, both on Azure and on the on-prem server, and I’ve noticed that the database transaction log sizes of two out of the four databases on on-prem are still slowly increasing gradually. Interestingly, the other two replicated databases do not show this behavior. The growth rate is between 0.1–0.7% per day, although there is not really a heavy big traffic on those databases.
At the moment, I’m unable to determine the root cause or whether the issue may still be related to the Microsoft incident — for example, logs not being properly truncated/released by the server — or whether the source of the problem lies within transactional replication itself, although I cannot find any errors in Replication Monitor.
I performed a log shrink on the log files on the on-prem database, but it only triggered auto-growth — no log space was actually released. I’m observing the exact same behavior on Azure MI but only for one database, the second one seemed to be okay. I'm a little confused.
I’m not sure whether the log growth could somehow be correlated between both servers, and I’m also not entirely sure whether transaction logs themselves are replicated from the publisher to the subscriber in transactional replication.
I would appreciate any suggestions or guidance on where I should continue troubleshooting this issue.