Toon posts:

[MS SQL] Limiet geheugengebruik sqlserv.exe

Pagina: 1
Acties:
  • 314 views sinds 30-01-2008
  • Reageer

Verwijderd

Topicstarter
Hoi,

Wij gebruiken een programma waarbij MS SQLServer zat. Dat draait op zich goed alleen gebruikt het proces sqlserv.exe onzettend veel geheugen. Dermate veel dat er niks overblijft voor de rest van het systeem.

Weet iemand of het mogelijk is om max. xxxMB aan dat proces toe te wijzen ?

Er zit helaas geen sql management tool bij om daar mee te rommelen dus ik vroeg me af of iemand weet of je dmv een commandline parameter het geheugengebruik kan limiteren.

Richard

  • axis
  • Registratie: Juni 2000
  • Laatst online: 26-01-2023
Voor je eigen duidelijkheid, wat jij bedoelt is de MSDE, de Microsoft SQL Server Desktop Edition..

Je zou hier eens kunnen kijken.. http://www.google.com/sea...q=limit+memory+usage+msde

In de normale SQL management tools kun je idd max mem instellen, zal nog eens kijken of ik kan vinden hoe dat bij MSDE zit..

Two advices for network troubleshooting.. learn to draw diagrams in Visio, and THINK IN LAYERS!


  • elevator
  • Registratie: December 2001
  • Niet online

elevator

Officieel moto fan :)

Zoek eens op sp_configure en memory - vermoedelijk kom je dna wl wat voorbeelden tegenw waarbij je de maximum avn het geheugengebruik kan instellen :)

  • P_de_B
  • Registratie: Juli 2003
  • Niet online
via osql.exe tooltje in de (tools\binn directory) het volgende commando uitvoeren:
code:
1
2
USE master
EXEC sp_configure 'max server memory', '[max mb]'


Let hier wel even op: (quote uit de help)


Effects of min and max server memory
The min server memory and max server memory configuration options establish upper and lower limits to the amount of memory used by the SQL Server database engine. The database engine does not immediately acquire the amount of memory specified in min server memory. The database engine starts with only the memory required to initialize. As the database engine workload increases, it keeps acquiring the memory required to support the workload. The database engine will not free any of the acquired memory until it reaches the amount specified in min server memory. Once min server memory is reached, the database engine then uses the standard algorithm (keeping the operating system's free memory within 4 MB to 10 MB) to acquire and free memory as needed. The only difference is that the database engine never drops its memory allocation below the level specified in min server memory, and never acquires more memory than the level specified in max server memory.

The amount of memory acquired by the database engine is entirely dependent on the workload placed on the instance. A SQL Server instance that is not processing many requests may never reach min server memory.

If the same value is specified for both min server memory and max server memory, then once the memory allocated to the database engine reaches that value, the database engine stops dynamically freeing and acquiring memory.

If an instance of SQL Server is running on a computer where other applications are frequently stopped or started, the allocation and deallocation of memory by the instance of SQL Server may slow the startup times of other applications. Also, if SQL Server is one of several server applications running on a single computer, the system administrators may need to control the amount of memory allocated to SQL Server. In these cases, you can use the min server memory and max server memory options to control how much memory SQL Server can use. For more information, see Server Memory Options.


Oops! Google Chrome could not find www.rijks%20museum.nl