home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
General Support
Heavy SQL Database Load
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="jimbeam128" data-source="post: 347541" data-attributes="member: 85829"><p>I found a thread and that worked for me:</p><p></p><p>Here an extract for that thread:</p><p></p><p>This is for SBS SQL Monitoring Database, but works also for all other databases. Just enter it in the command line. </p><p></p><p>Then you do not have to install the SQL Server Management Studio on your htpc or any other computer....<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /></p><p></p><p></p><p></p><p>So, how to limit RAM usage for SBS SQL monitoring database?</p><p></p><p>First, go with your Task Manager and under</p><p>View -> Select Columns</p><p>check PID and Virtual Memory Size.</p><p></p><p>Then see PID for the sqlservr.exe process which consumes large amount of RAM.</p><p></p><p>Then go to CMD Command prompt and enter this command:</p><p></p><p>tasklist /svc | find "sql"</p><p></p><p>You'll get something like this:</p><p>Koda:</p><p>C:>tasklist /svc|find "sql"</p><p>sqlservr.exe 1628 MSSQL$MICROSOFT##SSEE</p><p>sqlservr.exe 1724 MSSQL$SBSMONITORING</p><p>sqlagent.EXE 2868 SQLAgent$SBSMONITORING</p><p>sqlwriter.exe 2952 SQLWriter</p><p>sqlmangr.exe 10832 N/A</p><p></p><p></p><p>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.</p><p></p><p>If this is true, you may limit it via Command prompt entering these commands (what you need to type is marked bold):</p><p></p><p>C:>osql -E -S SERVERNAME\SBSMONITORING</p><p>1> sp_configure 'show advanced options',1</p><p>2> reconfigure with override</p><p>3> go</p><p>Configuration option 'show advanced options' changed from 0 to 1. Run the</p><p>RECONFIGURE statement to install.</p><p>1> sp_configure 'max server memory',70</p><p>2> reconfigure with override</p><p>3> go</p><p>DBCC execution completed. If DBCC printed error messages, contact your system</p><p>administrator.</p><p>Configuration option 'max server memory (MB)' changed from 2147483647 to 70.</p><p>Run the RECONFIGURE statement to install.</p><p>1> exit</p><p>C:></p><p></p><p>Note: Replace SERVERNAME, SBSMONITORING and number 70 with values to match your system!</p><p></p><p>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!</p><p>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.</p><p></p><p>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).</p></blockquote><p></p>
[QUOTE="jimbeam128, post: 347541, member: 85829"] I found a thread and that worked for me: Here an extract for that thread: This is for SBS SQL Monitoring Database, but works also for all other databases. Just enter it in the command line. Then you do not have to install the SQL Server Management Studio on your htpc or any other computer....:D 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: Koda: 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). [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
General Support
Heavy SQL Database Load
Contact us
RSS
Top
Bottom