Hi, on my WSUS server, the DB disk is continuously filling up, even when the WSUS service is at 0% CPU use and no network trafic. Is there a reason ?

Daro, Willy 21 Reputation points
2022-10-14T08:23:17.09+00:00

It fills the disk more than 2TB

Windows for business | Windows Server | User experience | Other
0 comments No comments

Answer accepted by question author
Adam J. Marshall 11,031 Reputation points MVP
2022-10-14T12:08:17.553+00:00

Are you performing the proper WSUS maintenance including but not limited to running the Server Cleanup Wizard (SCW), declining superseded updates, running the SQL Indexing script, etc.?

https://www.ajtek.ca/wsus/how-to-setup-manage-and-maintain-wsus-part-8-wsus-server-maintenance/

Do you have auto-approvals turned on? Look at your sync history - did a large number of updates come in recently?

Was this answer helpful?


5 additional answers

Sort by: Newest
  1. Adam J. Marshall 11,031 Reputation points MVP
    2022-10-14T14:37:16.807+00:00

    First investigate: Connect to the SQL Server (https://www.ajtek.ca/wsus/how-do-i-connect-to-the-windows-internal-database-wid/) and run the following SQL Script.

    USE SUSDB  
    CREATE TABLE #temp (  
    table_name sysname ,  
    row_count INT,  
    reserved_size VARCHAR(50),  
    data_size VARCHAR(50),  
    index_size VARCHAR(50),  
    unused_size VARCHAR(50))  
    SET NOCOUNT ON  
    INSERT #temp  
    EXEC sp_msforeachtable 'sp_spaceused ''?'''  
    SELECT a.table_name,  
    a.row_count,  
    COUNT(*) AS col_count,  
    a.data_size  
    FROM #temp a  
    INNER JOIN information_schema.columns b  
    ON a.table_name collate database_default  
    = b.table_name collate database_default  
    GROUP BY a.table_name, a.row_count, a.data_size  
    ORDER BY CAST(REPLACE(a.data_size, ' KB', '') AS integer) DESC  
    DROP TABLE #temp  
    

    This will give you the output of what tables are taking up the most space. If the top table is tbEventInstance, it's safe to truncate it (empty the data inside that table).

    USE SUSDB;
    TRUNCATE TABLE tbEventInstance;

    Your database can now be shrunk manually.

    Was this answer helpful?

    0 comments No comments

  2. Daro, Willy 21 Reputation points
    2022-10-14T13:22:21.073+00:00

    And still no CPU use and no network trafic

    Was this answer helpful?

    0 comments No comments

  3. Daro, Willy 21 Reputation points
    2022-10-14T13:06:59.59+00:00

    Hi Adam, Shrinking is not the question, the problem is that the DB inflate all the time and I have to expand the drive. This morning, within about 6 hours it fills more than 300GB, at this rate, I will have to expand the drive to 5TB tomorrow.

    Was this answer helpful?

    0 comments No comments

  4. Adam J. Marshall 11,031 Reputation points MVP
    2022-10-14T12:42:14.557+00:00

    The database itself doesn't automatically shrink. This is a fundamental function of SQL. We are actually building a database shrink feature for the next version of WAM, but you can contact our support department for some direct instructions to shrink the database in the meantime, using SQL Management Studio.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.