A timeout occurred while waiting for memory resources to execute the query in resource pool 'internal' (1). Rerun the query.

pdsqsql 436 Reputation points
2020-09-15T17:17:35.053+00:00

Hello,
We are receiving following error in our Sql server which hosted for 3rd party monitoring application wiht 2 databases running.

A timeout occurred while waiting for memory resources to execute the query in resource pool 'internal' (1). Rerun the query.

We have Sql Server 2014 SP3-CU4 , CPU 4, Total Memory: 8 GB and MAX MEMORY 6 GB.
I don't want to restart the server and fix the issue but need to troubleshoot to fix it.

I checked following:
24858-image.png

Buffer Cache Hit Ratio is 100

24915-image.png

CPU Pressure from sys.dm_os_schedulers:
24943-image.png

SQL Server | Other
0 comments No comments
{count} votes

9 answers

Sort by: Most helpful
  1. Erland Sommarskog 128.9K Reputation points MVP Volunteer Moderator
    2020-09-15T22:12:18.12+00:00

    The problem is that even if you can find where the memory is spent, it can be difficult to deal with it. Well, you can start to flush various caches, but that is not that much than restarting the machine. And if you do that, you could add more RAM while you are it.

    But you could look at sys.dm_os_memory_clerks to see where the memory is spent.

    1 person found this answer helpful.
    0 comments No comments

  2. tibor_karaszi@hotmail.com 4,316 Reputation points
    2020-09-15T17:21:24.027+00:00

    Seems you have memory pressure outside your sql server. What else is running on the machine at that time?

    0 comments No comments

  3. pdsqsql 436 Reputation points
    2020-09-15T18:27:20.143+00:00

    Thanks Tibor.
    Mostly Sql, WMI provider host and 3rd party tool application
    My Total Server Memory and Target Server Memory are close so no Memory Pressure, right?

    24954-image.png

    0 comments No comments

  4. Erland Sommarskog 128.9K Reputation points MVP Volunteer Moderator
    2020-09-15T21:42:40.737+00:00

    Seems more like internal memory pressure to me. 8 GB in total is not a lot...

    0 comments No comments

  5. pdsqsql 436 Reputation points
    2020-09-15T21:59:57.113+00:00

    Thanks Erland.
    Agreed but how can i troubleshoot that it's a internal memory pressure?

    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.