Sudden Severe Memory Leak


MossyRock

New member
Local time
7:33 AM
Posts
6
OS
Windows 11
I have a messaging/communication system that I've built, currently running on a Windows 11 machine, for a BOINC server farm. It provides a central console function. It runs many conventional DOS-command batch (.cmd) files that I've written, debugged and tweaked over the years. They are complex command files, retrieving system and BOINC manager statuses from other Windows 11 machines, parsing directory contents for message files and performing complex text parsing operations. One command file collects system status data and sends data out through a serial port to an Arduino which drives a series of lights.

The thing is, this system has worked nearly flawlessly for 8 years, up to a few days ago. It has worked on numerous Windows 10 systems on many different hardware builds. It literally runs for months without any intervention. I migrated it to an AMD NUC Windows 11 system last year and it continued to run without any issues.

Then suddenly a few days ago, without me making any changes anywhere, including not installing any Windows Updates, I noticed that the system was stressed. The 8GB memory in the system was exhausted. The memory utilization was 99% and the system was thrashing. Looking at Task Manager and Process Explorer, the list of items in memory was highly fragmented, but the total memory used by these programs and processes did NOT add up to the system's 8GB memory - NOWHERE CLOSE. 85% of the memory usage was not in the list of programs and processes - it was lost.

I shut down all the command files. The memory usage did not recover. It sat at 99%.

Ok, so I've suddenly developed a severe memory leak that I can't trace. I have no idea what is suddenly eating all the memory since it is not showing up in Task Manager or Process Explorer.

I've checked the memory with the built-in Windows memory tester (I know it isn't the best but it was a starting point). I've scanned for malware, I've run SFC /SCANNOW and it found two bluetooth drivers that were corrupt and it fixed them. I've checked the integrity of the only drive (C:) and it is fine. I don't use browsers on the machine, no email.

I tested the machine for days without anything running and the memory utilization stayed around 50%. As soon as I launch any of the batch .cmd files, the memory utilization climbs until all memory is exhausted.

The system is a stock Intel NUC (NUC11ATKC4), the OS is Windows 11 Pro version 10.0.26100 Build 26100, the processor is an Intel Celeron N5105, 2GHz, 4-core, which has not been tinkered with in any way (i.e., no overclocking; BIOS is at factory defaults).

Unless I can find out what has happened I'm going to have to wipe the system and start over from scratch to see if that solves the issue. This is painful, and I'd like to avoid that if I can.

Any thoughts? Thank you.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Conventional Desktop, Intel and AMD NUCs
In that case I would download Superantispyware and do a full system scan, then remove all results. Better to do that in Safe Mode. If you find too many results (over 500), I would use a second application such as Malwarebytes Antimalware to find anything the first application missed. In very severe cases I would consider doing a backup and then format and reinstall Windows.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 23H2 (build 22631.4249) test laptop, Windows 11 Pro v24H2 (build 26100.3476) main PC
    Computer type
    Laptop
    Manufacturer/Model
    Acer Extensa 5630EZ
    CPU
    Mobile DualCore Intel Core 2 Duo T7250, 2000 MHz
    Motherboard
    Acer Extensa 5630
    Memory
    4GB
    Graphics Card(s)
    Mobile Intel(R) GMA 4500M (Mobile 4 series)
    Sound Card
    Realtek ALC268 @ Intel 82801IB ICH9 - High Definition Audio Controller
    Monitor(s) Displays
    1
    Screen Resolution
    1280x800
    Hard Drives
    Samsung SSD 850 EVO 250GB SATA Device (250 GB, SATA-III)
    Internet Speed
    VDSL 50 Mbps
    Browser
    MICROSOFT EDGE
    Antivirus
    WINDOWS DEFENDER
    Other Info
    Legacy MBR installation, no TPM, no Secure Boot, no WDDM 2.0 graphics drivers, no SSE4.2, cannot get more unsupported ;) This is only my test laptop. I had installed Windows 11 here before upgrading my main PC. For my main PC I use everyday see my 2nd system specs.
  • Operating System
    Windows 11 Pro v24H2 (build 26100.3476)
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom-built PC
    CPU
    Intel Core-i7 3770 3.40GHz s1155 (3rd generation)
    Motherboard
    Asus P8H61 s1155 ATX
    Memory
    2x Kingston Hyper-X Blu 8GB DDR3-1600
    Graphics card(s)
    Gainward NE5105T018G1-1070F (nVidia GeForce GTX 1050Ti 4GB GDDR5)
    Sound Card
    Realtek HD audio (ALC887)
    Monitor(s) Displays
    Sony Bravia KDL-19L4000 19" LCD TV via VGA
    Screen Resolution
    1440x900 32-bit 60Hz
    Hard Drives
    WD Blue SA510 2.5 1000GB SSD as system disk, Western Digital Caviar Purple 4TB SATA III (WD40PURZ) as second
    PSU
    Thermaltake Litepower RGB 550W Full Wired
    Case
    SUPERCASE MIDI-TOWER
    Cooling
    Deepcool Gamma Archer CPU cooler, 1x 8cm fan at the back
    Mouse
    Sunnyline OptiEye PS/2
    Keyboard
    Mitsumi 101-key PS/2
    Internet Speed
    100Mbps
    Browser
    Microsoft Edge, Mozilla Firefox
    Antivirus
    Microsoft Windows Defender
    Other Info
    Legacy BIOS (MBR) installation, no TPM, no Secure Boot, WDDM 3.0 graphics drivers, WEI score 7.4
Do you not have an image made when all was working well? If so restore it.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2 26100.3775
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    1tb Solidigm m.2 nvme+256gb SKHynix m.2 nvme /External drives 512gb Samsung m.2 sata+1tb Kingston m2.nvme+ 4gb Solidigm nvme
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    #1 Edge #2 Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 10 Pro 22H2 19045.3930
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 9020
    CPU
    i7-4770
    Memory
    24 gb
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 gb Toshiba BG4 M.2 NVE SSB and 1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell factory
    Mouse
    Logitech wireless
    Keyboard
    Logitech wired
    Internet Speed
    still not telling
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
Hi Spapakons,

Thanks for your suggestion. I used Malwarebytes since I'm already familiar with the product and have used it for years. I scanned the entire system with all the options available from Malwarebytes and it found nothing. That, together with the security suite already installed (F-Secure) which found nothing also, I think the system has not been compromised by malware.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Conventional Desktop, Intel and AMD NUCs
Hi Glasskuter,

Thanks for suggesting this. I do have an image that was taken prior to this problem arising. I will restore it and see if the problem goes away. I will make a new image first, though, to preserve what I have in case I need to undo the restoration. It will take some time to go through all of this but I'll report back on the results.
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Conventional Desktop, Intel and AMD NUCs

Latest Tutorials

Back
Top Bottom