Physical Memory: 97%
I have a SQL Server 2008 R2 on Windows Server 2008 R2, on 64-bit virtual machine, dual processors dual quad core , and 32 GB RAM.
If I restart the server, and after all the processes and services start running, the used memory is not more than 4 ~ 6 GB (I don't remember exactly, but small compared to the overall 32 GB). Every day the used memory increases for 2~3 GB!, till it reaches
97% of the physical memory (31 GB), 29 GB of them for the SQL Server:
My question is how can I know what SQL Server processes or queries causes those increases in the memory? and if it is a process or query, why the used memory is not released after that process or query finishes ?!
Honestly, there is no complain about the performance of the server, but the weird thing is that as much as I give the server RAM as much as the SQL Server takes! The server was 8 GB and I increased it to 16 then 32 GB, but the SQL Server keeps eating more
and more!
Hi,
>>If I restart the server, and after all the processes and services start running, the used memory is not more than 4 ~ 6 GB (I don't remember exactly, but small compared to the overall 32 GB). Every day the used memory increases for 2~3 GB!,
till it reaches 97%
This is the way SQL Server memory works.When you restarted it its usage was low slowly you started running complex queries on SQL server which required pages from disk now SQL server started bringing these pages from disk into memory to make sure your query
is satisfied .Now when second time you use same query it will be fast as comapared to previous attempt as now there is no use of bringing pages in memory .Now if SQL would have released memory back your time taken would have been same and you would complain
about query being slow.This is the reaosn SQL caches as much data page it can so as to satify query from meory not picking pages from disk which is costly.But if Os faces presasure and SQLOS asks SQL server to trim its memory consuption it will do it politely.So
please dont be alarmed with SQL server using memory.
PLease dont look at task manager for SQL server memory consumption it might not show you correct memory utilization .I always recommend below DMV
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
If you do not want SQL server to use much memory you can change it from sp_configure by setting lower value for max server memory.But I am in favour you shoudl not do that .Set an optimum value for max server memory leaving 7-8 G for OS and other processes
running.
>>My question is how can I know what SQL Server processes or queries causes those increases in the memory?
I have never tried that and its little difficult to find what process unless that process is runnin.There is DMV sys.dm_os_buffer_descriptor which will tell you which database is using how much memory.Below query will resturn count of page loaded by each
database
http://technet.microsoft.com/en-us/library/ms173442.aspx
SELECT COUNT(*)AS cached_pages_count
,CASE database_id
WHEN 32767 THEN 'ResourceDb'
ELSE db_name(database_id)
END AS database_name
FROM sys.dm_os_buffer_descriptors
GROUP BY db_name(database_id) ,database_id
ORDER BY cached_pages_count DESC;
For further reading about memory to know that its really a normal behavior please see
Basics of memory
Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers
Similar Messages
-
I know in SAP's world, memory means physical memory + paging. I want to know which program has contribution for swap.
Suppose there is 4G physical memory on an application server, em/initial_size_MB = 4G, abap/heap_area_nondia = 4G.
1) If there is no dialog processor running and one background job running which claims 2G memory, I want to know will swap occur?
2) If there is one dialog processor running which claims 2G memory and one background job running which claims 2G memory, will swap occur?By ST03N you can check the workload, by OS06 the swap .
By transaction ST02 you can check the folllowing parameters:
SAP Roll area parameters
- ztta/roll_first : First amount of roll area used in a dialog WP
- ztta/roll_area : size of the local SAP Roll area in the work process
rdisp/ROLL_SHM : size of SAP roll Buffer
rdisp/ROLL_MAXFS : size of entire shared SAP roll area
SAP Extended Memory main parameters :
em/initial_size_MB : size of SAP extended memory allocated when the SAP instance starts up
em/blocksize_KB : size block which split SAP Extended Memory
ztta/roll_extension : maximum size of a user context in the SAP Extended memory
SAP Heap Memory main parameters :
abap/heap_area_dia : quotas oh SAP heap memory that a dialog process can allocated.
abap/heap_area_nondia : quotas oh SAP heap memory that a nondialog process can allocated.
abap/heap_area_total : size that can be allocated in total by all work process.
abap/heaplimit : Workprocess restart limit of heap memory
if helpful reward point is appreciated -
Physical Memory Upgrade [SAP, Oracle parameter changes]
Hello Guru,
Good day!
I'm not sure if I'm in the correct forum, please bare with me if I'm not.
We are actually planning to increase our Production [Physical Memory] server from its current size 15360GB including [oracle, SAP & OS] to 44GB memory. Do you have any idea how can we calculate to the most needed SAP / DB parameter should be increase after we allocate the 44GB in preparation for Go-Live. Below are details of my systems [oracle version, kernel, R/3 System, OS version, SAP parameter and DB parameter.
Reason for memory upgrade: will create two client in one system with a different number of users and different plant e.g. America / Canada
======================================================================
SAP R/3 Version: SAP 4.6C
Oracle Version: 10.2.0.4.0
OS Level: AIX 5.3
orapaa> oslevel -g
Fileset Actual Level Maintenance Level
bos.rte 5.3.8.0 5.3.0.0
Physical Memory
Real,MB 15360
======================================================================
kernel release 46D
kernel make variant 46D_EXT
compiled on AIX 1 5 0056AA8A4C00
compiled for 64 BIT
compile time Aug 17 2007 10:57:49
update level 0
patch number 2337
source id 0.2337
======================================================================
orapaa> prtconf
System Model: IBM,9117-MMA
Machine Serial Number: 06DDD01
Processor Type: PowerPC_POWER6
Processor Implementation Mode: POWER 6
Processor Version: PV_6_Compat
Number Of Processors: 4
Processor Clock Speed: 4208 MHz
CPU Type: 64-bit
Kernel Type: 64-bit
LPAR Info: 9 SWT_AMR_SADCB335_SAP_HA_PRI
Memory Size: 15360 MB
Good Memory Size: 15360 MB
Platform Firmware level: Not Available
Firmware Version: IBM,EM340_095
Console Login: enable
Auto Restart: true
Full Core: false
======================================================================
Our current used SAP parameter
Profile parameters for SAP buffers Parameters Name Value Unit
Program buffer
abap/buffersize 850000 Kb
CUA buffer
rsdb/cua/buffersize 10000
Screen buffer
zcsa/presentation_buffer_area 20000000 Byte
Generic key table buffer
zcsa/table_buffer_area 100000000 Byte
Single record table buffer
rtbb/buffer_length 60000
Export/import buffer
rsdb/obj/buffersize 40000 kB
Table definition buffer
rsdb/ntab/entrycount 30000
Field description buffer
rsdb/ntab/ftabsize 60000 kB
Initial record buffer
rsdb/ntab/irbdsize 8000 kB
Short nametab (NTAB)
rsdb/ntab/sntabsize 3000 kB
Calendar buffer
zcsa/calendar_area 500000 Byte
Roll, extended and heap memory EM/TOTAL_SIZE_MB 6144 MB
ztta/roll_area 6500000 Byte
ztta/roll_first 1 Byte
ztta/short_area 1400000 Byte
rdisp/ROLL_SHM 16384 8 kB
rdisp/PG_SHM 16384 8 kB
rdisp/PG_LOCAL 150 8 kB
em/initial_size_MB 4092 MB
em/blocksize_KB 4096 kB
em/address_space_MB 4092 MB
ztta/roll_extension 2000000000 Byte
abap/heap_area_dia 2000000000 Byte
abap/heap_area_nondia 2000000000 Byte
abap/heap_area_total 2000000000 Byte
abap/heaplimit 40000000 Byte
abap/use_paging 0
======================================================================
Oracle Parameter
Oracle Parameter Name Value Unit
SGA_MAX_SIZE 6192 MB
PGA_AGGREGATE_TARGET 400 MB
DB_CACHE_SIZE 0
SHARED_POOL_SIZE 960 MB
LARGE_POOL_SIZE 16 MB
JAVA_POOL_SIZE 32 MB
LOG_BUFFER 14246912
db_block_buffers 655360
Thanks and regards,
MikeI feel the best way to get the parameters which needs to be adjusted is to go for EarlyWatch Check after increasing the Physical Memory of your SAP system, as we cannot say how and which parameters needs to be checked and changed.. as there is some dependiblity also between the parameters...
All the best ! -
IPOD causes "Blue Screen of Death" with physical memory dump
Plugged in the IPOD into USB port on computer. It shows "found USB device" and then 5-10 seconds later I get the blue screen of death and a notification that there is a driver error and a physical memory dump as occurred.
Spent two hours with Apple people and Dell people this morning and nothing. I have updated drivers, flashed my bios, uninstalled and then reinstalled the latest version of Itunes.
Any help would be greatly appreciated.what numerical and text codes are you getting with it? (ie 0x[zeros/letters/numbers] CAPSANDUNDERSCORES)
if the blue screen mentions a specific file, let us know what that is called too. (exact spelling, please.)
here's a reference on the sorts of things i'm asking about:
Troubleshooting Windows Stop Messages
if you're just seeing a flash of a blue screen, we can use this technique to make hidden blue screens appear for us:
1) Open your system control panel (Start->Control Panels->System).
2) Select the "Advanced" tab.
3) Click the "Startup and Recover" section's "Settings" button
4) Verify that under "System Failure" the "Automatically restart" checkbox is not checked. -
Physical memory cache behavior in Windows Server 2008 Enterprise
I have a question regarding how windows manages the cache portion of phyiscal memory. I have 2 servers which are identical OS configurations, hardware and experience nearly identical workloads. Server 1 appears to use its cache a lot. I often
see physical cache at at 75% of total memory (total is 16gb for both servers). I also see that the cache stays this high
even when overall memory utilization is minimal (say approx. 3-4gb out of 16gb for long durations). I suppose this means windows memory manager is keeping pages in the cache because it anticipates it may need them again, but would overwrite them with
new data if new processes needed it (I think of this cached memory when the system is near idle as "available" but correct me if I am wrong?)
Server 2 (again same workload and identical hardware, OS, configuration) doesn't appear to use cache as much. In fact, cache is always low round the clock (2 gbs usually) even when there is little to no memory utilization from processes outside the OS. Basically,
it is low when the server is near idle, while the server 2 keeps it very high during the same period of minimal workload. Why the difference? Does this behavior sound normal? Please advise. I am not a Windows Admin btw. I have a rudimentary understanding
of memory.. or so I believe at least : )
Thanks.Hi,
Although both server are identical OS configurations, hardware and experience nearly identical workloads, there are still differences between them. We can use task manager on both server and Check which processes are using physical memory, please go through
the below article to check more details about windows performance issue:
Troubleshooting Windows Performance Issues: Lots of RAM but no Available Memory
http://blogs.technet.com/b/mspfe/archive/2012/12/06/lots-of-ram-but-no-available-memory.aspx
Regards,
Yan Li
TechNet Subscriber Support
If you are
TechNet Subscription
user and have any feedback on our support quality, please send your feedback
here.
Regards, Yan Li -
How to get the amount of free physical memory?
How to get the amount of free physical memory?
(without sudo or root)vmstat will give it to you.
Although the question depends a bit on what you mean by free memory.
The figure vmstat labels free (in any reasonably recent version of solaris) actually represents memory mostly filled with cached file contents. So it represents memory that can be easily released if needed by something more important.
Like most unix versions, solaris will use any free memory to cache files thats have been read/written previously just in case they are needed again -
Hello Everyone,
This is my first time posting in the forums so I hope that I have chosen the appropriate area and will do my best to be brief but informative.
Computer: HP Pavilion dv6000
Operating System: Windows Vista.
For the past 6-8 months it has been unable to perform Windows Update citing that the most likely reason was a virus. I have tried numerous trouble shooting options when it was recommended that I perform a chkdsk. After initiating a chkdsk in Command Prompt, my computer restarted and had a black screen with no cursor. After watching this for 2 hours and realizing that none of the usual chkdsk progress or text was coming up I made the decision to force shut down.
When I rebooted, I was told to enter system recovery which I did and completed a system recovery from the hard drive. After the system recovery finished and the laptop restarted, I experience a Blue Screen of Death due to a physical memory dump. The error codes are STOP: 0x000000F4 (0x0000000000000003, 0xFFFFFA8006671040, 0xFFFFFA8006671278, 0xFFFFF80001D01DA0).
I am not able to boot in safe mode. In the start up repair, I am able to enter command prompt from which I started chkdsk again. Both chkdsk f/ and chkdsk r/ passed with no errors. Additionally, the computer passed both UEFI Hard Drive and Memory tests. I have system recovery CDs for the computer but they fail at 78% completion.
Please let me know if you have any questions or require anymore information. I would appreciate any and all advice!
Thank you!
This question was solved.
View Solution.Hello @GraydonS,
Welcome to the HP Forums, I hope you enjoy your experience!
I have read your post on how there is an error message being displayed on your notebook, being a Blue Screen of Death (BSOD), and I would be happy to assist you in this matter!
Since you are having recovery issues with your system, I recommend following this document on Troubleshooting System Recovery Problems (Windows Vista). This should help you to successfully recover your Operating System.
If the issue persists, please call our technical support at 1-800-474-6836. If you live outside the US/Canada Region please click the link below to get the support number for your region.
http://www.hp.com/cgi-bin/hpsupport/index.pl
I hope this helps!
Regards
MechPilot
I work on behalf of HP
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos, Thumbs Up" on the right to say “Thanks” for helping! -
How to make use of the spare physical memory under buffered I/O of Essbase
We encountered an issue of the physical memory allocation of the server running Essbase with buffered I/O mode. We have implemented some cache setting in Essbase but still found that the disk I/O is quite high. Also we observed that Windows 2003 server cannot make use of the spare physical memory available as the system cache for database files of Essbase.
As allocating more memory as Essbase cache might not help, we would like to know other than changing to direct I/O mode, any other options can improve the disk I/O performance?
Thanks!Sandeep Reddy wrote:
Hi Hyperion_User,
1. Disk IO performance,It mighe depend on quite a few things , one of the aspects might be your storage system. It can depend on the disk configuration too ( i.e if your disk is SAN or NAS, then it depends on the configuration like Raid ..etc).
2. It depends on the HBA ( host bus adapter).
3. Let me try to explain with diagram.
http://www.c-sharpcorner.com/uploadfile/freebookarticles/apress/2008dec16010208am/DataStorageDesign/Images/159059214X-1404.1.gif
4. It might depend on the HBA and even on the switch speed.
5. Buffered IO is a very generic setting,which most of them use( that should not be an issue).
6. Even if you have 30 to 40 GB free memory, every application in essbase has a limitation to it maximum usage ( 2 GB on windows ). Refer to DBAG for more information on this .
Sandeep Reddy Enti
HCC
http://hyperionconsultancy.com/
Thanks for your detailed advice. I just wonder if more physical memory can help to improve the disk I/O being used for concurrent read/write access. We are using Windows 2003 Enterprise Edition and not sure whether some spare physical memory can be used for this purpose.
Thanks again! -
DV6500 Physical Memory Limitation to 3gb
Hi All,
My DV6500 Entertainment PC came with Windows Vista 32-bit preinstalled which limited my usable memory from 4gb to 3gb. I recently upgraded to Windows Home Premium 32-bit which I believe has a physical memory limitation of 4gb (http://msdn.microsoft.com/en-us/library/windows/desktop/aa366778%28v=vs.85%29.aspx#physical_memory_l... but upon inspection my windows still shows 3gb usable memory. Is there something I need to tweek in windows or bios to fully use all 4gb as installed on my laptop? Thanks in advance.
This question was solved.
View Solution.Hi:
That's what this forum is for...asking and answering questions.
So there is absolutely nothing for you to be sorry for.
Unfortunately, there is no way you can re-map or re-dedicate the memory configuration. It is what it is.
However, your PC's BIOS may have a setting to allow for more dedicated graphics memory to be used.
I was very surprised to see that in my dv6810us BIOS, there is a video memory setting. The default is 64 MB. However, I could change the setting to 128 MB or 32 MB.
So, I changed it to 128 MB.
Paul -
Physical Memory failure (DUMP)
I use SIS 648FX Chipset Based 648F NEO Series
using Pentium 4 HT 2.8 GHz processor
i already use Kingston 512 MB DDR 400 MHz PC3200 DIMM 3-3-3 for 3 months already. Yesterday I bought 1 more of Kingston 512 MB DDR 400 MHz PC3200 DIMM 3-3-3 to upgrade the RAM Memory
It doesn't work, computer doesn't even start. Before that my computer has 256 MB 266 Mhz memory module. It's strange, but if i reset CMOS settings with help of changing jumper position, the system starts.
If I use only one dimm than the computer can start.
I try both of the dimm. Both can start.
But when I use 2 dimm of Kingston 512 MB DDR 400 MHz PC3200 DIMM 3-3-3, the computer doesn't start.
IRQL_NOT_LESS_OR_EQUAL
Technical Information
***STOP: 0x00000A (0x3B08518D, 0x00000002, 0x00000001, 0x804F7444)
Beginning dump of physical memory
Physical memory dump complete.
Contact your system administrators or technical support group for further assistance.
MSI EXPERT pls help me ASAPI had that experience.
First I tried boot with 1 DDR and Enable 'DRAM Timing by SPD' in CMOS setting.
And then I boot with both DDR. It solved my problem.
Then I tried to tweak DRAM Timing again.
You also increase RAM voltage little each time.
Cheer!!! -
How to get the size of physical memory by using system call ?
how to get the size of physical memory by using system call ?What system call can be used for me to get the size of physical memor? thanks.
%vmstat 3
procs memory page disk faults cpu
r b w swap free re mf pi po fr de sr s0 -- -- -- in sy cs us sy id
0 0 0 3025816 994456 4 19 6 0 0 0 0 8 0 0 0 459 253 139 1 1 99
0 0 0 2864688 777408 0 2 0 0 0 0 0 3 0 0 0 428 134 175 0 1 99
0 0 0 2864688 777408 0 0 0 0 0 0 0 7 0 0 0 448 112 166 0 0 100
one interesting observation about vmstat I found out is (mostly on Solaris)
the first line of information always off chart, so I usually do a few interval to get constant result.
if you use linux
just
cat /proc/meminfo -
This happens maybe 30-50% of the time when I watch a video online, whether it be on YouTube or other streaming site. This usually happens when the video is at least 20 minutes long, and about 8-9 minutes in.
Looking at the Task Manager, my memory fills up to nearly its max (3.8-3.9 GB out of 4 GB) for a while before Firefox crashes. How can a video that is not very high definition take up that much physical memory space? After Firefox crashes, the RAM used immediately drops back below 1 GB.
Is this a Flash bug or a Firefox bug/leak? Or maybe my browser customization is at fault? It does not happen on Chrome.Well, doomsdaze's rant didn't help solve my problem, but it actually makes me feel better about switching to Chrome.
Yes, I switched browsers, set up all-new extensions and settings, and accepted other inconveniences because I couldn't watch videos in peace on Firefox.
I had no idea there were so many others with this problem! -
Does photo stream use up physical memory
I have backed up my photos to my hard drive and deleted them from my camera roll however they are duplicated in my photo stream. Is this using up physical memory on my phone
Photo Stream photos are only stored in iCloud for 30 days...to give you time to save to your devices. Of course if you've already saved these to your device then there are no longer temporary storage.
-
Relative size of sga_max_size and sga_target to the physical memory
Dear Experts,
I have installed oracle 10.2.0.4 on AIX 5.3 with 32 GB of physical memory.
Let us say other applications on the server consume 10 GB of physical memory.
Now how should i plan the size of SGA_TARGET and SGA_MAX_SIZE on the same.As per Oracle® Database Performance Tuning Guide 10g Release 2 (10.2):
You must then divide the resulting memory between the SGA and the PGA.
For OLTP systems, the PGA memory typically accounts for a small fraction of the total memory available (for example, 20%), leaving 80% for the SGA.
For DSS systems running large, memory-intensive queries, PGA memory can typically use up to 70% of that total (up to 2.2 GB in this example).
Good initial values for the parameter PGA_AGGREGATE_TARGET might be:
For OLTP: PGA_AGGREGATE_TARGET = (total_mem * 80%) * 20%
For DSS: PGA_AGGREGATE_TARGET = (total_mem * 80%) * 50%
where total_mem is the total amount of physical memory available on the system.
(http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14211/memory.htm#i49320) -
SQL SERVER PHYSICAL MEMORY USAGE HIGH
HI Teams,
i am going threw one of my production high physical memory usage in SQL Server. It always
around 90%.When i reboot the server, it will initially good but end of the day it will around 95 to 98% physical memory usage.
please give the valid solutions..,
Regards,
DBAThis is an expected/normal behaviour in SQL Server box. Memory management is highly dynamic in SQL Server and will use the complete memory allocated to SQL Server. It is also important to set the MAX SERVER MEMORY for the SQL Server instance. You may not
need to worry about this unless you find any performance issues.
Please mark this reply as answer if it solved your issue or vote as helpful if it helped.
[Blog]
Maybe you are looking for
-
Where is 'character' panel in PE 9
I had a problem with my fonts be locked in all caps. Clicking the reset buttons did not clear it. On the internet it said to open the 'character' panel and change it there but I couldn't find the character panel. It is not on the menu bar at the top
-
Hello, We are planning the upgrade of several of our SAP systems: From SRM 4 to SRM 7 From ECC 5 to ECC 6 From CRM 5 to CRM 7 and portal from EP6 to EP7 I can't find the dependencies between the systems anywhere, I've looked on matrix of compatibi
-
Splitted document with folio number
Hi everyone. We have pdf file contain 600 pages. We using ART splitter for split the document as chapter level. We getting separated file start page no 1. We need splitted file start with folio number as in pdf file. Help to get splitted file with fo
-
How do I delete photos after the latest update?
Okay, now that I did the upgrade 7, I have no idea how to delete photos after I moved to my laptop. need space
-
How can I look at old text messages
How can I look at old text messages that I haven't deleted my phone just won't load to let me go up that far.?