Many critical events in SharePoint SE after July 2025 updates

simdoc 20 Reputation points
2025-10-13T15:05:29.7666667+00:00

I am seeing many 6399 critical events after applying the July 2025 (and later) patches to SPSE. Most look like this:

The Execute method of job definition Microsoft.Office.Server.Search.Administration.QueryLogJobDefinition (ID <PII removed>) threw an exception. More information is included below.

Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.. (Correlation=<PII removed>)

The strange thing is that you can reboot the server, and the events will not appear for a couple of days. After this time, they start appearing in large numbers. I can easily reproduce this in a test lab running SPSE/SQL 2022/Windows Server 2025 on a single system in a single server farm configuration.

Anyone else seeing this as well or know the cause? Since I can reproduce it easily, I suspect others are having the same issue.

Microsoft 365 and Office | SharePoint Server | For business
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Teddie-D 9,045 Reputation points Microsoft External Staff Moderator
    2025-10-14T02:32:58.5066667+00:00

    Hi @Michael Hlavinka 

    Thank you for posting your question in the Microsoft Q&A forum. 

    Please note that our forum is a public platform, and we will modify your question to hide your personal information in the description. Kindly ensure that you hide any personal or organizational information the next time you post an error or other details to protect personal data.

    The error message "The Execute method of job definition Microsoft.Office.Server.Search.Administration.QueryLogJobDefinition threw an exception. Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool" indicates that the Query Logging Timer Job is exhausting the SQL connection pool. This occurs when all pooled connections are in use and the maximum pool size has been reached. 

    The pattern you observed suggests connection leaks or unreleased connections in the Search Query Logging component. This issue appears to have been introduced or exposed by the July 2025 Cumulative Update for SharePoint Server Subscription Edition. 

    The July 2025 CU appears to have introduced major security enhancements along with changes in ASP.NET machine key handling and search-related components. These internal modifications seem to have influenced how QueryLogJobDefinition interacts with SQL Server, potentially contributing to connection pooling issues under specific conditions. 

    Currently, there is no official fix or KB article addressing this behavior, but the SharePoint product team is investigating. In the meantime, you can try the following workarounds: 

    -Increase SQL Connection Pool Size Modify the connection string for the Search Service Application database to increase the maximum pool size. The default is 100, but you can try raising it to 200 or 300. Please note this may only delay the issue if a connection leak is present. 
    Reference: Seeing connection time out error due to "max pool size was reached" when using Microsoft.Data.SqlCl…

    -Set up a scheduled task to restart the SharePoint Timer Service (SPTimerV4) daily or every 48 hours. This helps clear stale connections and reduce pressure on the pool 

    -If query logs are not essential, you can disable the Query Logging Timer Job in Central Administration. 
    Reference: Enable query logging in SharePoint Server - SharePoint Server | Microsoft Learn

    I hope this information is helpful. 


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".   

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.  


  2. simdoc 20 Reputation points
    2025-10-15T14:41:29.01+00:00

    I wish I could finally get an update from Microsoft that I can trust. We've had nothing but problems in many products of the last year since the release of Windows Server 2025 and Windows 11 24H2! Most of them related to operating system issues. Product quality has been abysmal, worse than any time before, and I have been using Microsoft products for around 40 years. I used to spend less than 20% of my time on these problems. Today I'm spending virtually all my time on Microsoft problems and not getting paid for it! I wish I could invoice Microsoft for my wasted time!


  3. Marc Oo 40 Reputation points
    2025-10-29T10:46:40.54+00:00

    Hello; is there any updates on the issue ?

    I've passed the emergency July 2025 CU on a SPSE Farm; since this patch, Query Logging timer job started to have issues processing, as well as an other one job that i can't remember the name; the job was reported on the timerJob history cenatralAdmin page as failed job

    I've passed then the Windows Update + .NET Framework 4.8 update of October 2025; then the Query Logging timer job stopped to be shown as Failed Jobs; tho; the timerJob stayed up for 4 days after it; I thought it was fixed but in fact not; the query logging is still not executed properly and send a Aborted status;

    User's image

    I ended up disable the tj

    Would appreciate some updates on this point;

    Best Regards, Marc

    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.