How much memory sql server is using

Hi Experts,
I want to  know how much of RAM is currently used by sql server.
is there a query for the same?
we are using sql server 2008 R2 SP2 on windows server 2008 R2 with a RAM of 48 GB. min memory as 40, max memory as 43GB.
thanks in advance.
Cheers, Vinod Mallolu

Hi Shanky
Thanks for the info. Perhaps you can clarify something for me on it.
If I run this on one of my production servers:
SELECT object_name, cntr_value MemoryUsageKB, cntr_value/1024 MemoryUsageMB,cntr_value/1024/1024 MemoryUsageGB
FROM sys.dm_os_performance_counters
WHERE counter_name = 'Total Server Memory (KB)';
select physical_memory_in_use_kb,
(physical_memory_in_use_kb/1024) as Phy_mem_MB,
(virtual_address_space_committed_kb/1024) as Total_mem_MB--memory pagefile+physical memory
from sys.dm_os_process_memory
I get this:
object_name
MemoryUsageKB
MemoryUsageMB
MemoryUsageGB
SQLServer:Memory Manager 
118488256
115711
112
physical_memory_in_use_kb
Phy_mem_MB
Total_mem_MB
118363564
115589
231792
As I have LPIM enabled I'm surprised at the Total_mem_MB result, page file usage is at 0.09%. Any idea why it would be reported like that?
I'm also surprised that the DMV is reporting a lower number for physical memory usage than the perfmon counter, but I guess they're not measuring the exact same thing.
Edit: Version is SQL 2012 SP2 CU2....should have included that :)

Similar Messages

  • How much memory are actually being used? db_32k_cache_size

    Hi everyone,
    Using Oracle 10g on RHEL 5.3.
    I've been asked to check how much memory are actually being used by our db cache's. Currently we are using the parameters db_32k_cache_size (user-defined) and db_8k_cache_size (default) both allocated with 12gb. Now I want to know if there is any way to find out how much of the 12gb are actually being used by the cache.
    Is this possible?
    Thanks

    Thanks Guys,
    Okay, so it is using the whole 12gb. I guess the next question would be, is 12gb really needed? You see, we are trying to increase memory where possible as this database has performance issues. Now we are thinking of taking some of the 12gb that is allocated to the 32k cache and assign it to the sga for instance.
    Does this make any sense?
    Regards

  • How to connect Sql Server 2000 using JDBC ODBC Driver

    How to connect Sql Server 2000 using JDBC ODBC Driver ?
    plz Send Syntax.
    thanks

    In SQL Server 2000 the driver class is com.microsoft.jdbc.sqlserver.SQLServerDriver
    The connection URL for the default SQL Server 2000 database is jdbc:sqlserver://localhost:1433
    Class.forName(
      "com.microsoft.sqlserver.jdbc.
      SQLServerDriver");
    String url =
      "jdbc:sqlserver://localhost:1433";
    Connection conn = DriverManager.
      getConnection(
      url, "sa", "sqlserver");

  • Can each Thread say how much memory it wants to use ?

    Can each Thread say how much memory it wants to use ?
    or any other way to identify this ?
    namanc

    No

  • How much memory can Premiere Pro use on a new Mac Pro?

    I'm ready to upgrade memory on my Mac Pro Late 2013 6-core.  Does PP CC 2014 have a limit on how much RAM it can use?  Some apps never use more than a certain amount, so I don't want to buy a lot of memory if PP will never put it to work.  (I made that mistake when I was an FCP user.)  Is there a limit and if so, what?
    Also, are there any Mac Pro users who have an opinion on optimum RAM?  I currently have 16GB (4x4GB) with 10GB reserved for PP.  I am in the middle of a very large project and have noticed some irregularities and spinning balls.  I assume that they are from memory shortage since quitting all other apps and restarting PP seems to fix the issue.

    Not a Mac expert here ... but I do know there's folks running 64G ram and so going up from 16 will work fine. Now ... as to which is the "choke-point" ... that's a bit more techie than I can answer off the bat.
    The Adobe video apps can put a pretty good strain on all of the computer's hardware, and "balancing" the assets of the hardware to the usage patterns of the software is always the trick. Memory never hurts ... but if the spinning ball is a video-ram problem, changing mobo ram isn't going to do much. The various areas they go into great detail on within the pages of the "Tweakers Page" (found within these forums threads, check the hardware forum) are of course, mobo, chip/s & cores, ram, disc in-outs & arrays/layout of project/footage & program files, video card & ram.
    Your problem might be best solved by more RAM; it might be that it's a disc read/write issue and either more internal or eSATA II discs to spread read/write processes over would be best ... or taking an array of discs and using a fast multi-disk RAID array to speed things up even faster, or a video card upgrade.
    So ... where you might want to go is the the Hardware Forum and give your computers complete specs, including disc layout and usage, and see what folks there think needs tweaking.
    Neil

  • How to install sql server 2012 using the license of sql 2014

    Hello,
    We want to install sql server 2012 on a server because of an application that can not work with sql server 2014.
    We have a license for sql server 2014. The license is not visible for sql 2014 in our licenses because it is now included in the installation package. We also can not get a license key for SQL 2012 server now.
    How can we get a valid sql server 2012 license key?
    Thanks,
    Gr. Peter.

    Hello Peter, 
    This is a community forum for technical questions & issues.
    For question regarding pricing / licensing please contact a Microsoft sales partner or licensing expert.
    Call (1-800-426-9400), Monday through Friday, 6:00 AM to 6:00 PM PST to speak directly to Microsoft licensing specialist.
    Regards.
    T-SQL Articles
    T-SQL e-book by TechNet Wiki Community
    T-SQL blog

  • How can I find out how much memory each song is using?

    how can I determine the file size of each song in my playlist?

    Hey mate,
    Highlight a song by clicking on it.
    Hold [Control] and Left Click on the song, choose 'Show in Finder', this will open that song in the finder, then select that song, go up to file on the top taskbar, choose 'Get Info' and it will show you the file size.
    Hope this helps,
    Regards,
    Zet.

  • How much memory can Audition make use of

    I am considering a new computer. If Audition 3.0 will make use of ram in excess of 2 MB I will put it in. However, the "system requirements" gives only the minimum and does not suggest optimum. Many programs will not address ram in excess of 2 MB.
    Does any one know?

    Yeah, what Runaway said. That's what I believe anyway, based on my own occasionally painful experience running Au3 on P4 1.7 Ghz with 2 GIGs of RAM. Things start to stutter and crap out when I get over twenty tracks running in Multitrack with realtime EQ running on everything and ESPECIALLY compression running on only a few tracks.
    My next purchase is going to be a new computer, dual core with tons of speed and real estate.

  • How much memory/space are Mac Apps Taking?

    I know this is probably a very simple question for you experts but as a newbie, I dont know how to figure it out.  Im trying to find out how much hard drive space (and maybe memory?) the apps I have downloaded from the Mac App Store are taking up?  Where would I find this?  Ive looked in the Finder but couldnt find what I was looking for?  Does the Activity Moniitor or something else break it down to just the Mac Apps?
    Also do you know if Time Machine saves your organizational Launchpad Folders when you back up your machine?  Just was curious if you had to switch macs or something, if the folders would all come back up or if  its best to keep a list of what apps you have in what folders.
    I also was wondering if anyone else has had a problem of your Launchpad Folders and individual apps within folders getting out of order when you have to restart your system.  Since I dont yet have an iphone and apps were new to me, I got a little crazy in downloading a bunch of free apps and games (many of which I think Im going to start deleting because I dont really use them)...but Ive organized them in all in alphabetical order - Ive got folders in Alphabetical Order as well as the apps within folders in alphabetical order.  Its strange becuase whenever my system gets restarted, several of the folders and apps get mixed up.  Ive been working with Apple techs on this for weeks but just curious if anyone else has had a similar problem.  The tech told me most people dont keep it as well organized as I do.
    Thanks.

    You can do this:
    I know this is probably a very simple question for you experts but as a newbie, I dont know how to figure it out.  Im trying to find out how much hard drive space (and maybe memory?) the apps I have downloaded from the Mac App Store are taking up?  Where would I find this?  Ive looked in the Finder but couldnt find what I was looking for?  Does the Activity Moniitor or something else break it down to just the Mac Apps?
    To find out how much hard drive space (or how large the App is), Right-Click on the App in your Applications folder and choose Get Info. This will show you xx MBs on Disk (hard drive). To see how much memory the App is using, check Activity Monitor while the App is running. It will be on the list of all processes running.
    But you can also click the  (apple) in the upper left hand corner of the screen and select about this mac>more infor>storage

  • How much memory comes with iWeb?

    Can anyone tell me how much memory comes with iWeb 09?
    Where do I look to find this information and also how much memory I have already used.
    Trying to put a movie up and I just get an error...after much time has gone by and cannot even get up an album with only 30 pictures. Thinking maybe I have run out of Apple memory.Thanx all...Kathy

    now I can't even open up iWeb. This is the error I get when I try...
    Can't open file"~/Documents/Restored Files/Macintosh HD/Users/Kg/Library/Application Support/iWegb/Domain.sites2"

  • How much memory does SQL Server 2008R2 Standard use on Windows Server 2008 R2 64-bit?

    Hi,
    can anyone tell me how much RAM will really be used by SQL Server?
    72 GB are currently installed. As Windows is only able to use 32 GB is SQL Server able to use the other 40GB + the unused part of the first 32 GB?
    Thank you very much!
    BR Matthias

    Sorry, I don´t understand your post ?!
    Maybe the question is if SQL Server is able to allocate more memory than the installed Windows Version is able to?
    Since your OS is Windows Standard edition(X64) it cannot use or a process running cannot use more than 32 G of memory.
    Now SQL server can use as much memory possible but it is now limited by Windows as your OS can only see 32 G.So it would be good part from your side to go to sp_configure and set 25 G for SQL server and can leave rest for OS( it just a figure not a actual
    value i have given,actual you have to calculate by yourself or refer to below link) .
    http://mssqlwiki.com/2013/04/22/max-server-memory-do-i-need-to-configure/
    As Andrew said after 32 G what ever memory you put it is waste.
    Hope this helps
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Sql server is using memory more then there max memory setting?

    Hi All,
    today i have faced the different issue..........
    we have one SQl server 2008 prod server... it have memory issue actually  total server memory is 8GB and we have allocated the 6 GB to SQL server,we checked the server no open trans and dont have running jobs also,one database is using the memory high(no
    open trans)... but Sql server has used 6.5 GB (6 GB) and total server used memory is reached to 7.89 GB.
    Please tell me how to find the most costly query in particular database wise and sql server internally behavior ?
    how to troubleshot the  above issue?
    please post the your valuable answers ASAP...
    Thanks,
    RAM

    Please refer to what Olaf said briefly.Buffer pool in SQL server only caters to memory requests which requires pages <8 KB . Almost all requests are satisfies by buffer pool and generally request for memory is small and so buffer pool satisfies the requests.
    However there are some direct memory allocation by windows API which is done by windows for requests which  requires memory greater than 8 KB. This memory wont come from buffer pool and this would be counted in memory utilized by SQL server. SQL
    CLR,XML, linked Server, all takes memory outside buffer pool in SQL Server 2008. This behavior changed in 2012 so my statement only applies to SQL server 2005/2008 and 2008 R2.
    I would run below to check SQL server memory utilization.
    select
    (physical_memory_in_use_kb/1024)Memory_usedby_Sqlserver_MB,
    (locked_page_allocations_kb/1024 )Locked_pages_used_Sqlserver_MB,
    (total_virtual_address_space_kb/1024 )Total_VAS_in_MB,
    process_physical_memory_low,
    process_virtual_memory_low
    from sys. dm_os_process_memory
    I am sure you must be using some features mentioned above.You were worried that even though there is no query running on SQL server it has still holded up the memory. This is default behavior and this is how memory management in SQL Server works. It will
    not release memory untill SQLOS asks it to do so which is told by windows OS thorugh some flag that it is facing memory pressure.
    Please read below for more details on memory. There is section to test whether system is facing memory crunch please read that as well.
    http://social.technet.microsoft.com/wiki/contents/articles/22316.sql-server-memory-and-troubleshooting.aspx
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • How can I load a .xlsx File into a SQL Server Table using a Foreach Loop Container in SSIS?

    I know I've REALLY struggled with this before. I just don't understand why this has to be soooooo difficult.
    I can very easily do a straight Data Pump of a .xlsX File into a SQL Server Table using a normal Excel Connection and a normal Excel Source...simply converting Unicode to DT_STR and then using an OLE DB Destination of the SQL Server Table.
    If I want to make the SSIS Package a little more flexible by allowing multiple .xlsX spreadsheets to be pumped in by using a Foreach Loop Container, the whole SSIS Package seems to go to hell in a hand basket. I simply do the following...
    Put the Data Flow Task within the Foreach Loop Container
    Add the Variable Mapping Variable User::FilePath that I defined as a Variable and a string within the FOreach Loop Container
    I change the Excel Connection and its Expression to be ExcelFilePath ==> @[User::FilePath]
    I then try and change the Excel Source and its Data Access Mode to Table Name or view name variable and provide the Variable Name User::FilePath
    And that's when I run into trouble...
    Exception from HRESULT: 0xC02020E8
    Error at Data Flow Task [Excel Source [56]]:SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occured. Error code: 0x80004005.
    Error at Data Flow Task [Excel Source [56]]: Opening a rowset for "...(the EXACT Path and .xlsx File Name)...". Check that the object exists in the database. (And I know it's there!!!)
    I don't understand by adding a Foreach Loop Container to try and make this as efficient as possible has caused such an error unless I'm overlooking something. I have even tried delaying my validations and that doesn't seem to help.
    I have looked hard in Google and even YouTube to try and find a solution for this but for the life of me I cannot seem to find anything on pumping a .xlsX file into SQL Server using a Foreach Loop Container.
    Can ANYONE please help me out here? I'm at the end of my rope trying to get this to work. I think the last time I was in this quandry, trying to pump a .xlsX File into a SQL Server Table using a Foreach Loop Container in SSIS, I actually wrote a C# Script
    to write the contents of the .xlsX File into a .csv File and then Actually used the .csv File to pump the data into a SQL Server Table.
    Thanks for your review and am hoping and praying for a reply and solution.

    Hi ITBobbyP,
    If I understand correctly, you want to load data from multiple sheets in an .xlsx file into a SQL Server table.
    If in this scenario, please refer to the following tips:
    The Foreach Loop container should be configured as shown below:
    Enumerator: Foreach ADO.NET Schema Rowset Enumerator
    Connection String: The OLE DB Connection String for the excel file.
    Schema: Tables.
    In the Variable Mapping, map the variable to Sheet_Name, and change the Index from 0 to 2.
    The connection string for Excel Connection Manager is the original one, we needn’t make any change.
    Change Table Name or View name to the variable Sheet_Name.
    If you want to load data from multiple sheets in multiple .xlsx files into a SQL Server table, please refer to following thread:
    http://stackoverflow.com/questions/7411741/how-to-loop-through-excel-files-and-load-them-into-a-database-using-ssis-package
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Acmcneill1ug 14, 2014 7:16 AM I have IMac OSX 10.9.4, 4GB,Processor 3.06 with Intell2Duo. I would like to check for Malware. I run a TechTool Pro 6 every month and that comes up great. When check how much memory I am using, with only Safar

    Acmcneill1ug 14, 2014 7:16 AM
    I have IMac OSX 10.9.4, 4GB,Processor 3.06 with Intell2Duo. I would like to check for Malware. I run a TechTool Pro 6 every month and that comes up great.
    When check how much memory I am using, with only Safari open I am using 3.9 and more of her 4.0 memory. She is very. very slow in processing. I had 4000
    trash to clean out and it took her over an hour to expel. Also for some reason Safari will not allow me to click on a link, in my G-mail, and let it go to the page.
    It has a sign saying a pop-up blocker is on and will not let me do it. I must open the stamp to look at my e-mails and if I have redirected link now I can do it.
    I have not changed my preferences so where is this pop-up blocker?
    I have looked at preferences on Safari and Google, which I do not understand Google, and do not see where this blocker could be.
    Malware is something I want to make sure is not on my computer. Tech Tool Pro 6 is all I know of and it does not detect Malware.
    Help.
    Ceil

    Try Thomas Reed's Adware removal tool. He posts extensively in the communities.
    Malware Guide - Adware
    Malware Discussion

  • How to add byte[] array based Image to the SQL Server without using parameter

    how to add byte[] array based Image to the SQL Server without using parameter.I have a column in table with the type image in sql and i want to add image array to the sql image column like below:
    I want to add image (RESIM) to the procedur like shown above but sql accepts byte[] RESIMI like System.Drowing. I whant that  sql accepts byte [] array like sql  image type
    not using cmd.ParametersAdd() method
    here is Isle() method content

    SQL Server binary constants use a hexadecimal format:
    https://msdn.microsoft.com/en-us/library/ms179899.aspx
    You'll have to build that string from a byte array yourself:
    byte[] bytes = ...
    StringBuilder builder = new StringBuilder("0x", 2 + bytes.Length * 2);
    foreach (var b in bytes)
    builder.Append(b.ToString("X2"));
    string binhex = builder.ToString();
    That said, what you're trying to do - not using parameters - is the wrong thing to do. Not only it is insecure due to the risk of SQL injection but in the case of binary data is also inefficient since these hex strings are larger than the original byte[]
    data.

Maybe you are looking for

  • How to display the value of a javascript variable in a html region ?

    Hello, I need to display my page title or name in a html region. I added a script in the <title> section of the template header... : (thanks Andy : Get page name from page attributes ? <script type="text/javascript"> var pageTitle = '#TITLE#'; </scri

  • Printing issue in word document

    hi,  i am facing problem with printing word document, the alternate lines are not getting printed, theres no issue in printing pdf files. please suggest

  • Can't seem to save non-English as text from PDF using Reader

    I have several PDF documents that were originally generated by OpenOffice from a UTF8-encoded text file. The text is in different languages, e.g. Korean, Arabic, Russian, English. When I open these documents and then "save as text", the resulting tex

  • Document layout changes when creating PDF

    We have the problem of the layout/formatting of documents changing whenever we try to print to PDF from, for instance MS-Word. We open a large document of lets say 100 pages in total, then when we choose PRINT and now select ADOBE PDF instead of the

  • Four DTD's into one message

    I have to create one message, but I do not have one single format, but four DTD's which have to put together. My scenario in detail: I have to create a RosettaNet-Message for communication with my business partner, but since we have only a few per ye