Windows technical support
Podporni forum za uporabnike storitev spletnega gostovanja
This forum is part of windows webhosting service at www.hostmachine.net
 


How to limit SBS Monitoring SQL database RAM usage

To je neaktivna kopija originalnega foruma, prirejena za lazje indeksiranje z iskalnimi roboti.
Klikni tukaj za prehod na aktivni forum.
Click here to go to original active forum.


 
       Windows technical support Forum Index -> Windows server
View previous topic :: View next topic  
Author Message
Pico



Joined: 18 Jan 2004
Posts: 250
Location: HostMachine.net

Posted: 9.5.2008, 02:37    Post subject: How to limit SBS Monitoring SQL database RAM usage  

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):

Quote: 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).
Back to top  
 
       Windows technical support Forum Index -> Windows server
Page 1 of 1


Te strani so generirane samo za lazje indexiranje z iskalnimi roboti.
Prosimo, da uporabite povezavo na glavni forum, kjer lahko aktivno sodelujete s svojimi prispevki