Although this behavior does not affect the regular operation of other processes, you may want to limit the amount of physical memory that is allocated for SQL Server. Recommended values are shown in the following table.
Collapse this tableExpand this table
System memory | Recommended setting |
1 GB | 386 MB |
2 GB | 512 MB |
3 GB | 764 MB |
4 GB | 1024 MB |
However, you should monitor the memory performance counters, the SQL Server log (Sql.log), and the ISA Server logs to make sure that logging is not affected. If you experience problems, increase the recommended values gradually. To do this, follow these steps:
- Determine the maximum memory limit that is allocated for SQL Server. To do this, follow these steps:
- Paste the following text into a text editor such as Notepad, and then save the file by using a ".sql" extension. For example, save the file as �checksqlmemory.sql.�
USE master
EXEC sp_configure 'show advanced options', 1
RECONFIGURE WITH OVERRIDE
USE master
EXEC sp_configure 'max server memory (MB)'
USE master
EXEC sp_configure 'show advanced options', 0
RECONFIGURE WITH OVERRIDE
- At the command prompt, type the following command:
osql -E -S ServerComputerName\msfw -i Path\checksqlmemory.sql
Note In this command, checksqlmemory.sql is the file that you created in the previous step and Path is the full path of the file that you created in the previous step.
- Reduce the amount of physical memory that is allocated for SQL Server. To do this, follow these steps:
- Paste the following text into a text editor such as Notepad, and then save the file by using a ".sql" extension. For example, save the file as �setchecksqlmemory.sql.�
USE master
EXEC sp_configure 'show advanced options', 1
RECONFIGURE WITH OVERRIDE
USE master
EXEC sp_configure 'max server memory (MB)', MaxServerMemory
RECONFIGURE WITH OVERRIDE
USE master
EXEC sp_configure 'show advanced options', 0
RECONFIGURE WITH OVERRIDE
Note In this example, MaxServerMemory is the value of the physical memory in megabytes (MB) that you want to allocate. For example, replace MaxServerMemory with �512.� - At the command prompt, type the following command:
osql -E -S ServerComputerName\msfw -i Path\setchecksqlmemory.sql
Note In this command, setchecksqlmemory.sql is the file that you created in the previous step and Path is the full path of the file that you created in the previous step.
Note The optimum physical memory allocation for SQL Server may vary for your system.
Follow these steps to reduce the memory used to 512 MB:
- Create and name a batch file. For example, name the file SetMSDEmemory.bat.
- Paste the following text as a single line, even if it appears wrapped in your display. Then, add a second line with the single word PAUSE:
osql -S %computername%\MSFW -E -Q "exec sp_configure 'show advanced options',1 reconfigure with override exec sp_configure 'max server memory (MB)',512 reconfigure with override"
PAUSE
- Log on to the ISA server as the administrator.
- Run the batch file. This will produce output, such as the following:
DBCC execution completed
Configuration option 'max server memory (MB)' changed from 204754 to 256.
Note If the DBCC prints error messages, note the error code and contact PSS for help with changing the configuration and for more troubleshooting. - Press any key to exit the command shell.