วันพฤหัสบดีที่ 28 ตุลาคม พ.ศ. 2553

วิธีทำให้ SQL Server ใช้ RAM เกิน 2GB

  • เพิ่ม /PAE ใน boot.ini 
  • เพิ่มสิทธิ์ให้ user ที่ใช้ในการรัน SQL service ให้มี Lock Pages in Memory

To enable the lock pages in memory option

  1. On the Start menu, click Run. In the Open box, type gpedit.msc.
    The Group Policy dialog box opens.
  2. On the Group Policy console, expand Computer Configuration, and then expand Windows Settings.
  3. Expand Security Settings, and then expand Local Policies.
  4. Select the User Rights Assignment folder.
    The policies will be displayed in the details pane.
  5. In the pane, double-click Lock pages in memory.
  6. In the Local Security Policy Setting dialog box, click Add.
  7. In the Select Users or Groups dialog box, add an account with privileges to run sqlservr.exe.
  • restart เครื่องใหม่
  • รัน SQL Script เพื่อตั้งค่า
sp_configure 'show advanced options', 1
RECONFIGURE
GO
sp_configure 'awe enabled', 1
RECONFIGURE
GO
sp_configure 'max server memory', 6144 (6GB คร้าบ)
RECONFIGURE
GO
  •  เอาให้ชัวร์ restart SQL server ใหม่
แหล่งข้อมูล

ไม่มีความคิดเห็น:

แสดงความคิดเห็น