June 18, 2012 at 1:47 pm
HI,
We have production server in which SQL server is consumming high Memory about 97%.
We are having a Production server with Windows 2008 server on which SQL server 2008 -64 bit prod is running.
Ram---8GB
max and min sql server setting is done for the server.
Max--6GB and MIN ---0
Can any one help me how to troubleshoot the memory issue.
From which parameter i have to start.
Please give me a step by step troubleshoot steps
Many Thanks....
June 18, 2012 at 1:48 pm
There is no issue. This is the behavior of SQL Server.
What I have done in the past to make sql give up it's memory it has built up:
Run this to make it give up all but a gig.
EXEC sys.sp_configure N'show advanced options', N'1'
RECONFIGURE WITH OVERRIDE
GO
EXEC sys.sp_configure N'min server memory (MB)', N'0'
EXEC sys.sp_configure N'max server memory (MB)', N'1024'
GO
RECONFIGURE WITH OVERRIDE
GO
Run this to let it build it back up to all available.
EXEC sys.sp_configure N'min server memory (MB)', N'0'
EXEC sys.sp_configure N'max server memory (MB)', N'2147483647'
GO
RECONFIGURE WITH OVERRIDE
GO
EXEC sys.sp_configure N'show advanced options', N'0'
RECONFIGURE WITH OVERRIDE
GO
This is really not necessary of course.
June 18, 2012 at 1:50 pm
Maybe you have a non-SQL Server process consuming CPU cycles?
Or a session consuming CPU (run away job :unsure: exectued by SQL Agent) have you checked sp_who2
Something must be running for a bit.
Or maybe a backup tool (if using 3rd party client) attempting to run/and is hanging but hitting the SQL Server?
--------------------------------------------------
...0.05 points per day since registration... slowly crawl up to 1 pt per day hopefully
June 18, 2012 at 6:24 pm
-- Find memory util with the below query
SELECT total_physical_memory_kb/1024 TotmemMB, available_physical_memory_kb/1024 as AvailPhymemMB,
total_page_file_kb/1024 as TotpagefileMB, available_page_file_kb/1024 as AvailPagefileMB, system_memory_state_desc,
(select memory_utilization_percentage from sys.dm_os_process_memory)as memory_utilization_percentage
FROM sys.dm_os_sys_memory;
--Look at the values for these parameters; sply PLE
SELECT object_name,counter_name,cntr_value
FROM sys.dm_os_performance_counters
WHERE counter_name = N'Page life expectancy' and OBJECT_NAME = N'SQLServer:Buffer Manager'
or counter_name like ('Free pages%') and OBJECT_NAME = N'SQLServer:Buffer Manager'
or counter_name like ('Free list stalls/sec%') or counter_name like ('Page reads%')
or counter_name like 'Index%';
-- Also, you could check the top cpu consuming queries and if any ways 2 optimise them !!
-- Easy way is to add more memory; but that might not solve memory issues most time as sql will eat up whatever memory is allocated to it.
June 18, 2012 at 6:28 pm
June 19, 2012 at 3:11 am
Nomal, expected behaviour. If SQL is using too much memory, reduce max server memory slightly. Maybe to 5.5GB.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
June 19, 2012 at 8:16 am
THanks a Lot for replying and giving me an idea.
Can any one tell me if i want to run the Perfmon counters,
how much Time i have run to verfiy the data.
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy