MS SBS 2003 SQL Memory Usage Errors

No replies
Admin
Offline
ModeratorRegular Member
Joined: 16/08/2008
Posts:
Points: 263

If your Microsoft SBS 2003 R2 server is complaining of high memory usage errors, they are probably due to MS SQL instances running on the server.  To manually set the maximum memory for the SQL instances, following the steps below:

Right click on your taskbar and bring up the Task Manager.
Click on the Processes Tab.
Click on the Mem Usage category to sort by it, then click it again to bring the highest ones to the top.
If PID is not the second column in your view, click on view and select columns.
Put a check mark beside PID.
Click OK.
Note the PID of the offending SQL instance.

Now, go to a command prompt (Start-->run-->cmd-->enter) and type the following command:

tasklist /svc

Scroll back up until you see the PID in the list. To the right of the PID, will be the appropriate instance to go after.

If the SQL process name is MICROSOFT$SBSMonitoring, the instance name is SBSMonitoring

Now we proceed at the command line as follows:

osql -E -S SERVERNAME\INSTANCENAME
sp_configure 'show advanced options',1
reconfigure with override
go

You will get a message that the option has been changed from 0 to 1.

Now to set the max memory to 128MB, type the following:

sp_configure 'max server memory',128
reconfigure with override
go

You will then get a message indicating the maximum allowable memory for that instance has been changed from 2 GB to 128 MB.

The memory will be set to this maximum almost immediately and you can check this back in Task Manager.

Exit out of the osql command shell by typing:

exit [enter]

Done!

If you have mulitple SQL instances hogging memory (normally this is true), then simply repeat the steps above for each instance.

Your SBS server should now be humming along with plenty of free RAM to allow it to do what it was meant to.

Cheers,
Aaron

NB: Thanks to Philip Elder for his post http://blog.mpecsinc.ca/2007/02/sbs-2k3 ... stall.html

__________________

For Official Aztech Networks Support - email to support@aztech.net.au

If you appreciated this help, please donate so we can keep the tech info flowing!

 

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <table> <td> <tr> <b> <i> <u> <div> <span> <p> <br> <option> <form> <input>
  • Lines and paragraphs break automatically.
  • Images can be added to this post.
  • You may use [inline:xx] tags to display uploaded files or images inline.
  • Textual smileys will be replaced with graphical ones.

More information about formatting options

Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.