Процесс sql server windows nt 64 жрет память


  • Hello,

    It’s weird that suddenly I can’t access to my sql server database (it says it’s being recovered)

    1

    and i found that the sql service is using a LOT OF my memory and disk in the task manager

    2

    Could any one help me please to resolve this ?

    Thank you

  • February 25, 2021 at 10:23 am

    Answer

    #3850004

    it was a scheduled task that is triggered.

    I put it off and everything is fine

  • Hi,

    I got the sam error a view years ago. There was not enough memory for the operation system, to accept a new connection.

    It was difficult to find, but easy to fix.

    Kind regards,

    Andreas

Viewing 3 posts — 1 through 2 (of 2 total)

Dealing with high memory usage in SQL Server on Windows NT can be a challenge for administrators and database professionals. In its default configuration, SQL Server maximizes its RAM usage, taking as much as the OS is willing to allocate. Consequently, a substantial Memory Usage is expected. 

However, the initial focus should be on checking for any Hard Faults in the Resource Monitor to assess potential performance issues. In this article, we will get into the details of this issue, providing insights and solutions to help you optimize memory utilization effectively. Here comes the details.

Why Is SQL Server Consuming All Memory?

When faced with high memory usage in SQL Server on Windows NT, the first step is to identify the root cause. Common factors include inefficient queries, large result sets, or inadequate server configurations. 

Inefficient Queries

Memory leaks can occur due to bugs in SQL Server or poorly designed queries that lead to inefficient memory usage. It’s crucial to scrutinize your queries, ensuring they are written in an optimal manner. 

-- Example of an inefficient query

SELECT * FROM MyTable WHERE SomeColumn LIKE '%search%';
SQL Server Windows NT High Memory Usage

Optimize queries by using indexes, avoiding wildcard characters at the start of ‘LIKE’ clauses, and fetching only the necessary columns. These optimizations can significantly reduce memory consumption.

Large Result Sets

Handling large result sets can strain memory resources. Consider implementing pagination or limiting the number of rows fetched in a single query.

-- Fetching a limited number of rows

SELECT TOP 100 * FROM MyTable;

By fetching a smaller subset of data, you alleviate the burden on memory and enhance overall system performance.

Inadequate Server Configurations

Insufficient memory allocation in your server configuration can also lead to high memory usage. Ensure that your SQL Server instance has adequate memory resources allocated based on the server’s capacity and workload.

-- Checking current memory settings

EXEC sp_configure 'max server memory (MB)';

Adjust the ‘max server memory’ setting accordingly to allocate an optimal amount of memory to SQL Server.

How Do I Fix High Memory Usage in SQL Server?

The below methods should be a good start to fixing the high memory usage issue in SQL Server. 

1. Optimize Memory Configuration

The “max server memory” option determines the maximum amount of memory that SQL Server can use. Ensure that this setting is configured appropriately to prevent SQL Server from consuming all available memory, leaving enough for the operating system and other applications. 

Optimize Memory Configuration

Adjust the “max server memory” setting based on your system’s available resources and workload requirements. Strike a balance between allowing SQL Server to use sufficient memory for optimal performance and leaving enough for the operating system and other applications.

sp_configure 'show advanced options', 1;

RECONFIGURE;

sp_configure 'max server memory (MB)', <desired_memory_size>;

RECONFIGURE;

Establishing the maximum memory allocation for SQL Server is a recommended practice. A general guideline is to set it at 8-10% below the total RAM on a dedicated server and to allocate more on a desktop or shared resource server.

2. Implement a Robust Monitoring Strategy

Use tools like SQL Server Management Studio (SSMS), Performance Monitor, or third-party monitoring solutions. 

Implement a Robust Monitoring Strategy

SQL Server, by design, utilizes all the accessible memory it can acquire. If you wish to modify this behavior, you can navigate to SSMS (SQL Server Management Studio), access “Server Properties,” and make adjustments under the “Memory” settings. 

Implement a Robust Monitoring Strategy

Implement a Robust Monitoring Strategy

3. Utilize Buffer Pool Extensions

Enhance SQL Server memory management with buffer pool extensions. Allocate a portion of SSD storage as an extension of the buffer pool.

ALTER SERVER CONFIGURATION SET BUFFER POOL EXTENSION ON (FILENAME = 'E:\BufferPoolExtension.bpe', SIZE = 10GB);

4. Windows NT Tuning for SQL Server

Fine-tuning Windows NT settings can significantly impact how SQL Server utilizes resources. Here’s a few ways it might prove helpful.

Adjusting Page File Size

Configure the page file size based on SQL Server and Windows NT requirements. Ensure the page file is on a dedicated drive separate from the SQL Server data and log files.

Configuring Windows NT Memory Policies

Fine-tune Windows NT memory policies to optimize resource allocation. Adjust settings such as “Virtual Memory” and “System Cache” to align with SQL Server’s needs.

Exploring NUMA Architecture Considerations

For servers with Non-Uniform Memory Access (NUMA) architecture, configure SQL Server to align with NUMA node boundaries. Use max degree of parallelism and affinity mask settings accordingly.

Frequently Asked Questions

How can I monitor memory usage in SQL Server?

You can use the following query to check current memory usage:

SELECT * FROM sys.dm_os_process_memory;

Can I rely on the default SQL Server memory settings?

No, it’s recommended to customize memory settings based on your server’s specifications and workload.

Is Task Manager enough to monitor SQL Server memory usage?

While Windows Task Manager provides a general overview, it’s advisable to use SQL Server-specific tools like SSMS for detailed analysis of memory and CPU usage. 

Conclusion

Optimizing SQL Server memory usage on Windows NT requires a combination of query optimization, result set management, and appropriate server configurations. By addressing these aspects, we hope you can now enhance the performance and stability of your SQL Server instance. We encourage you to share any thoughts, experiences, or questions you might have. Thanks for reading!

4

Answers

khaleel shaik

6y

41.6k


1

SQL Server windows NT service take 93 % ram usage , Please any one give me idea for reducing the memory usage.

server ram is 32 gb.

It is taken continueos 93 5 is taken ram usage .

Please give me any one good solution. 

Answers (4)

Next Recommended Forum

Hash Generated password change .

What is pig and sqoop?

Windows 10: sqlservr.exe SQL Server Windows NT — 64 Bit very high memory usage

Discus and support sqlservr.exe SQL Server Windows NT — 64 Bit very high memory usage in Windows 10 BSOD Crashes and Debugging to solve the problem; System process sqlservr.exe have often an CPU usage above %60.

But there seems to be no reason…..

sqlservr.exe SQL Server Windows NT — 64 Bit…
Discussion in ‘Windows 10 BSOD Crashes and Debugging’ started by Legion #, Apr 5, 2019.

  1. sqlservr.exe SQL Server Windows NT — 64 Bit very high memory usage

    System process sqlservr.exe have often an CPU usage above %60.

    But there seems to be no reason…..

    sqlservr.exe SQL Server Windows NT — 64 Bit

    What could I do to determine and resolve this High CPU usage problem ?

    Thank you

    :)

  2. 64 bit Microsoft Drivers for PHP 5.6 for SQL Server

    Hello everyone,

    Can anyone please tell where to find the official release of «64 bit Microsoft Drivers for PHP 5.6 for SQL Server» (php_sqlsrv_56_ts.dll and php_pdo_sqlsrv_56_ts.dll — both 64 bit).

    I searched for it but couldn’t find it anywhere.

    The following link contains the official 32 bit drivers:

    https://www.microsoft.com/en-us/download/details.aspx?id=20098

    • Version 3.2 supports PHP 5.6, 5.5, and 5.4 on Windows

    Any help would be appreciated.

    Thanks,

    Sam

  3. Sql server Management Studio 2016 windows 10 High memory usage

    I installed SQL server Management Studio 2016 on Windows 10 Pro with 16 GB of memory. After a day of running I found that when I run SQL server Management Studio 2016 memory usage jumps to nearly 100% and the system because almost unusable. I have had
    to uninstall Management Studio so that I can use my desktop again. Is there any fix for this?

  4. sqlservr.exe SQL Server Windows NT — 64 Bit very high memory usage

    Will I be able to install SQL server 2014 32 bit in 64 bit machine.

    can I load SQL server 2014 32 bit version in my 64 bit machine

    Original Title:32 bit version in 64 bit os in a 64 bit machine

Thema:

sqlservr.exe SQL Server Windows NT — 64 Bit very high memory usage

  1. sqlservr.exe SQL Server Windows NT — 64 Bit very high memory usage — Similar Threads — sqlservr exe SQL

  2. Very high memory usage

    in Windows 10 Gaming

    Very high memory usage: My memory usage often reaches 80-98% during normal tasks like using Chrome, Word, and Excel. I even switched to Opera because Chrome was frequently crashing and showing ‘not responding’ messages. Is there anything I can do to fix this?…
  3. Very high memory usage

    in Windows 10 Software and Apps

    Very high memory usage: My memory usage often reaches 80-98% during normal tasks like using Chrome, Word, and Excel. I even switched to Opera because Chrome was frequently crashing and showing ‘not responding’ messages. Is there anything I can do to fix this?…
  4. windows server 2016 high memory usage

    in Windows 10 Gaming

    windows server 2016 high memory usage: Please give solution for this issue .. this server launch in hyper-v console .

    https://answers.microsoft.com/en-us/windows/forum/all/windows-server-2016-high-memory-usage/64f7790c-a485-4091-b146-048828b36aca

  5. windows server 2016 high memory usage

    in Windows 10 Software and Apps

    windows server 2016 high memory usage: Please give solution for this issue .. this server launch in hyper-v console .

    https://answers.microsoft.com/en-us/windows/forum/all/windows-server-2016-high-memory-usage/64f7790c-a485-4091-b146-048828b36aca

  6. Microsoft SQL server 2017 64 bit registry location

    in Windows 10 Customization

    Microsoft SQL server 2017 64 bit registry location: Hi All ,

    I wanted to know , which is the registry path for Microsoft SQL server 64 bit in windows .

    If you go Programs and features in your computer , you could see Microsoft SQL server 2017 64 bit . where does it stored in the registry ?

    any idea ?…

  7. Very high dwm memory usage

    in Windows 10 BSOD Crashes and Debugging

    Very high dwm memory usage: How do I fix this problem of DWM getting high usage of RAM whenever I leave my laptop hanging for awhile.[IMG]

    https://answers.microsoft.com/en-us/windows/forum/all/very-high-dwm-memory-usage/cea2b371-9373-4183-9a95-f09a4072e800

  8. Vmmem CPU and memory usage are very high

    in Windows 10 BSOD Crashes and Debugging

    Vmmem CPU and memory usage are very high: Hi.

    My laptop is a Dell i7 with 16M running on Windows is 10 Home Edition uptodated, which is constantly overwhelmed by this one process vmmem, which consumes, on a regular basis, 6-7MB of RAM, but it escalates up to 12MB and I just can’t tell why. This issue started very…

  9. Very high memory usage, no programs open

    in Windows 10 Ask Insider

    Very high memory usage, no programs open: Task manager claims that 95% or more of my ram is being used, but the values for each program adds up to under a gigabyte. Any help?

    submitted by /u/Currall04
    [link] [comments]

    https://www.reddit.com/r/Windows10/comments/gv9fos/very_high_memory_usage_no_programs_open/

  10. Very high memory usage by «system»

    in Windows 10 Performance & Maintenance

    Very high memory usage by «system»: Hi all.
    Im having an issue with my «System»
    Screenshot by Lightshot
    This is after 30-60min of having the computer running.
    Late last night it was at almost 6GB!!
    wtf is going on?
    i had Killer Networking — Home those drivers for me e2200 network card, but installed…

Users found this page by searching for:

  1. sqlservr.exe SQL Server Windows NT — 64 Bit

    ,

  2. sql server windows nt high memory

    ,

  3. sql server windows nt-64 bit

    ,

  4. sql server windows nt — 64 bit,
  5. sql server windows nt,
  6. sql server windows nt high memory usage,
  7. sql server windows nt — 64 bit taking memory,
  8. sql server windows nt — 64 bit メモリ,
  9. sql server windows nt 64 bit,
  10. sql server windows nt 64 bit high cpu,
  11. sql server windows nt high cpu usage,
  12. sql server windows nt — 64 bit taking cpu,
  13. sql server windows nt — 64 bit ram consumption,
  14. how to troubleshoot sqlservr.exe memory usage above setting,
  15. sql server windows NT cpu very high

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Startup boot windows xp
  • Windows не удается скопировать файлы необходимые для установки 0х80070241
  • Hp 2055 не печатает windows 10
  • Система не видит второй монитор windows 10
  • Windows не видит днс