Link to home
Start Free TrialLog in
Avatar of whorsfall
whorsfallFlag 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
Avatar of Shahnawaz Ahmed
Shahnawaz Ahmed
Flag of India image

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
Avatar of pcsmitpra
pcsmitpra
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 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
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
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
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Great answers - I am going to ask a more general question on SQL. :)