29
2013
Lock Pages in Memory enabled but “Using locked pages for buffer pool” message not found
On a SQL Server 2005 x64 SP4+CU3 Standard Edition with Lock pages in memory settings enabled, max memory configured, found issue that “Using locked pages for buffer pool” message is not logged in SQL Server Error logs,
How to check Lock Pages in Memory is enabled?
Run below commands in SSMS and in result you should see message like “Using locked pages for buffer pool” else configure or troubleshoot based on situation,
exec
xp_readerrorlog 0, 1, ‘locked pages’
exec
xp_readerrorlog 0, 1, ‘lock pages in memory’
Now, verified everything like account settings in group policy, etc. but unable to figure out issue, then land up at following page http://sqldoctor.idera.com/recommendations/sdr-m1/lock-pages-memory-address-windowing-extensions-awe-32bit64bit-confused/ which tells clearly whether and how to verify if lock pages in memory is enabled or not, went through following link http://support.microsoft.com/kb/970070 and identified that issue was with trace flag,
To make sure that the trace flag has enabled Locked Pages in 64-bit editions of SQL Server, verify that the following message is written in the SQL Server error log file at startup:
Using locked pages for buffer pool
If you do not see this message in the error log file, do the following:
- Make sure that you have trace flag 845 set correctly. Trace flags that are set as startup options are printed at the top of the error log file.
- Make sure that the service account for SQL Server has the Lock Pages in Memory privilege enabled. You do not have to set these permissions if the SQL Server Service Account is the LOCAL SYSTEM account.
Procedure to set trace flag -T845, following two link1 and link2 are useful,
1. In SQL Server Configuration Manager, click SQL Server 2005 Services.
2. In the right pane, right-click SQL Server (<instance_name>), and then click Properties.
3. On the Advanced tab, in the Startup Parameters box, type the parameters separated by semicolons (;).
For example, to enable trace flag 845, insert -T845; in front of the existing startup options and then restart the database.
4. Click OK.
5. Restart the Database Engine.
After this is done, issue resolved and lock pages in memory now actually enabled!
If you are looking for how to enable lock pages in memory then procedure is,
- Click Start, click Run, type gpedit.msc, and then click OK.
Note The Group Policy dialog box appears.
- Expand Computer Configuration, and then expand Windows Settings.
- Expand Security Settings, and then expandLocal Policies.
- Click User Rights Assignment, and then double-click Lock pages in memory.
- In the Local Security Policy Setting dialog box, click Add User or Group.
- In the Select Users or Groups dialog box, add the account that has permission to run the Sqlservr.exe file, and then click OK.
- Close the Group Policy dialog box.
- Restart the SQL Server service.
Reference,
http://sqldbpool.com/2012/08/28/how-to-check-lock-pages-in-memory-is-enabled/
http://msdn.microsoft.com/en-us/library/ms190737(v=sql.90).aspx
http://support.microsoft.com/kb/970070

Leave a comment
Subscribe to this blog via Email
Old Posts
- November 2017 (3)
- October 2017 (4)
- September 2017 (2)
- May 2017 (1)
- April 2017 (1)
- July 2016 (3)
- May 2016 (1)
- April 2016 (1)
- February 2016 (2)
- January 2016 (1)
- October 2015 (1)
- September 2015 (1)
- August 2015 (1)
- July 2015 (2)
- June 2015 (3)
- April 2015 (1)
- March 2015 (1)
- December 2014 (1)
- September 2014 (2)
- April 2014 (1)
- January 2014 (3)
- October 2013 (2)
- September 2013 (2)
- August 2013 (4)
- July 2013 (1)
- June 2013 (2)
- May 2013 (5)
- April 2013 (3)
- March 2013 (1)
- February 2013 (9)
- January 2013 (11)
- December 2012 (14)
- November 2012 (3)
- October 2012 (4)
- July 2012 (2)
- June 2012 (3)
- May 2012 (2)
- April 2012 (8)
- March 2012 (6)
- February 2012 (3)
- January 2012 (1)
- December 2011 (5)
- November 2011 (8)
- October 2011 (5)
- September 2011 (3)
- August 2011 (3)
- July 2011 (3)
- May 2011 (1)
- November 2010 (1)
Tags
Calender
M | T | W | T | F | S | S |
---|---|---|---|---|---|---|
« Nov | ||||||
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
View Post by Categories
Recent Articles
- Setting up Always ON Availability Group in Multi Subnet Cluster – Recommendations
- Configuring Replication with Always ON Availability Group
- Login failed for user ‘DOMAIN\COMPUTER$’. Reason: Could not find a login matching the name provided. [CLIENT: ]
- Modern Servicing Model (Service Pack and Cumulative Updates) for SQL Server 2017 and onwards
- Fix: SSMS 2012 opening Debug window when pressing F5