Avatar of whorsfall
whorsfall
Flag for Australia asked on

SQL 2008 memory usage and process information

Hi,

Is it possible in SQL 2008 to work out the the particular query each of my SPIDs + the amount of memory they are using.

I have a number of processes that are running in SQL and I am trying to work out which one is hogging all the memory.

thanks,

Ward
Microsoft SQL Server 2008Microsoft SQL Server 2005Microsoft SQL Server

Avatar of undefined
Last Comment
whorsfall

8/22/2022 - Mon
Shahnawaz Ahmed

Dear whorsfall,

You can use Process explorer or autorun.exe to find the details about memory consumption by Processes,
Both .exe you can download from here www.Live.sysinternals.com

Thanks
SOLUTION
pcsmitpra

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
whorsfall

ASKER
Hi,

Thanks for your help looking. It looks like my sql server is using the maximum memory that I have specified. Ie I have set the max memory to 24 gb and that is what the sql server process is using.

So from what I can see from the info the figures don't add up I think. As suggested by the comment so what is the best way to work out where all the memory is going. If I am missing something obvious please let me know.

Ie take this figure add it to this etc :)

Thanks,

Ward
Anthony Perkins

If I am missing something obvious please let me know.
I guess I must be the one missing something.  What are you trying to address?  If you have a performance problem and you are trying to figure out the query/queries that are causing a problem, than I suggest (as I did previously) to take a look at some of the DMVs.  If this is too much trouble (learn DMVs) consider using something like Adam Machanic's sp_whoisactive
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
whorsfall

ASKER
Hi,

Thanks for your response - I will have a look again at the DMVs. I am trying to work out why my sql server is always using the maximum f memory. So this was my thinking to look at the processes. Correct if there is a better approach. Also given I am using up 24 gb at the moment should it mostly be taken up by sql server processes, or is the oher things that could be consuming memory in the sql process ?

Thanks,

Ward
ASKER CERTIFIED SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
whorsfall

ASKER
Great answers - I am going to ask a more general question on SQL. :)