On our production environment we have seen the Message Container database of Servicebus grow to over 100 GB of data. This data was mostly in the MessageBodies table. Simultaneously we have seen two issues:
1. The Stored procedures DeleteMessageBodies and the TuncateLogs gave timeouts after 2 minutes
2. These Stored Procedures used more than 100 GB of space in both the tempdb as the Log of the Message Containers database.
Since the data could not be deleted from the database we got issues on the production system because of the lack of disk space on the Database server.
We use:
SQL Server 2012 (11.0.5343),
Windows Server 2008 R2,
Service Bus for Windows Server 1.1 CU 1
Are there any settings that we can change to allow the queries to complete (Increase the CommandTimeout)? And using less disk space when the Stored Procedure are run?