Gostovanje na Windows strežnikih, ponudba webhosting, ASP.NET, PHP, MySQL


Windows technical support
Podporni forum za uporabnike storitev spletnega gostovanja
Reply to topic
How to limit SBS Monitoring SQL database RAM usage
Pico
Site Admin

Joined: 18 Jan 2004
Posts: 250
Location: HostMachine.net
Reply with quote
On SBS Server 2003 your SBS monitoring SQL database may consume a large amount of RAM. When you look at running processes with Task Manager you may see sqlservr.exe process, running with SYSTEM credentials, consuming even more than 500MB RAM and over 1.5GB of Virtual memory!
This is really not good for the system, and may slow down your server.

So, how to limit RAM usage for SBS SQL monitoring database?

First, go with your Task Manager and under
View -> Select Columns
check PID and Virtual Memory Size.

Then see PID for the sqlservr.exe process which consumes large amount of RAM.

Then go to CMD Command prompt and enter this command:

tasklist /svc | find "sql"

You'll get something like this:
Code:
C:>tasklist /svc|find "sql"
sqlservr.exe                  1628 MSSQL$MICROSOFT##SSEE
sqlservr.exe                  1724 MSSQL$SBSMONITORING
sqlagent.EXE                  2868 SQLAgent$SBSMONITORING
sqlwriter.exe                 2952 SQLWriter
sqlmangr.exe                 10832 N/A


Find the PID from Task Manager in the list from this command. Most probably it is MSSQL$SBSMONITORING process which is guilty for large RAM consumption.

If this is true, you may limit it via Command prompt entering these commands (what you need to type is marked bold):

C:>osql -E -S SERVERNAME\SBSMONITORING
1> sp_configure 'show advanced options',1
2> reconfigure with override
3> go
Configuration option 'show advanced options' changed from 0 to 1. Run the
RECONFIGURE statement to install.
1> sp_configure 'max server memory',70
2> reconfigure with override
3> go
DBCC execution completed. If DBCC printed error messages, contact your system
administrator.
Configuration option 'max server memory (MB)' changed from 2147483647 to 70.
Run the RECONFIGURE statement to install.
1> exit
C:>

Note: Replace SERVERNAME, SBSMONITORING and number 70 with values to match your system!

As you see, by design SBS monitoring database has a limit of 2147483647 MB of memory, so it can eat up practically all your RAM!
The 70 MB limit here shown is just a guess, and my recommendation is to use some value between 70 and 300, depending on your free RAM.

Have your Task Manager open and watch your sqlservr.exe process how it releases RAM imidiatelly after you issue these commands. Many people have used this hack and all are happy with server behaviour. No side effects have been noticed (as far as I know).

_________________
Site admin alias Labsy
Vsi nasveti in tehnične rešitve so podani v dobri veri in za ljudi z razčiščenimi pojmi o veljavni zakonodaji.
Odgovornost prevzemam izključno in samo za tiste posege, ki jih opravim lastnoročno.
View user's profileSend private messageVisit poster's websiteMSN Messenger
How to limit SBS Monitoring SQL database RAM usage
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT + 1 Hour  
Page 1 of 1  

  
  
 Reply to topic