VMware Workstation

Β View Only
Expand all | Collapse all

mksSandbox.exe memory bloat

jen2

jen2Apr 24, 2025 09:17 AM

  • 1.  mksSandbox.exe memory bloat

    Posted Feb 27, 2025 05:30 PM

    Hello, I'm new here.

    About four weeks ago, I installed three VMware virtual machines on my host system. Everything ran smoothly with high performance-no lag, no issues.

    But suddenly, I started experiencing high RAM consumption by mksSandbox.exe, even after setting multiple limits in the VMware settings and VMX file. The process keeps consuming memory until the virtual machine crashes. Once it crashes, mksSandbox.exe collapses, and the RAM is released back to the system.

    I have reinstalled my OS and VMware at least 10-20 times and tested various configurations:

    • High and low RAM reservations
    • High and low GPU allocations

    No matter what I do, mksSandbox.exe keeps bloating until it crashes VMware.

    I've searched Google, Reddit, and even asked ChatGPT, but I haven't found a solution. This forum is my last hope-does anyone know how to fix this issue?

    πŸ” The Issue

    Task manager screen shot
    • VMware Workstation consumes more RAM than assigned and does not properly release it.
    • mksSandbox.exe (VMware's graphics process) uses excessive memory (up to 18GB).
    • Standby List was initially a problem, but after fixes, VMware itself was the real culprit.
    • Memory is overcommitted, leading to 100% usage and causing performance issues.
    • Killing mksSandbox.exe frees RAM but also disconnects active games inside VMs.

    βœ… Fixes We Tried & Results

    1️⃣ Adjust VMware Workstation Global Memory Settings

    βœ… Changes Made:

    1. VMware Workstation β†’ Edit β†’ Preferences β†’ Memory
      • Set "Reserved Memory for All Running VMs" to 48GB (instead of 56GB).
      • Prevents VMware from taking excessive memory from the host.

    βœ… Result:

    • Helped reduce RAM hoarding slightly, but VMware still consumed more than allocated.

    2️⃣ Edit VMX Files to Force Hard Memory Limits

    βœ… Changes Made:

    1. Opened each VM's .vmx file (found in C:\Users\YourUser\Documents\Virtual Machines\VMName\).
    2. Added the following lines:
      sched.mem.max = "X" sched.mem.min = "X" sched.mem.prealloc = "TRUE" MemTrimRate = "0" MemBalloonDisable = "TRUE" Mem.ShareScanGHz = "0"
      • Replace "X" with the assigned RAM amount (in MB) for the VM.
      • Example: If a VM has 6GB RAM, use sched.mem.max = "6144" and sched.mem.min = "6144".

    βœ… Result:

    • Forced VMware to use only the assigned memory, preventing hidden overcommitment.

    3️⃣ Disabled 3D Acceleration to Reduce mksSandbox.exe Memory Usage

    βœ… Changes Made:

    1. VM Settings β†’ Hardware β†’ Display
    2. Unchecked "Accelerate 3D Graphics"
    3. Clicked OK and restarted the VM.

    βœ… Result:

    • Drastically reduced mksSandbox.exe RAM usage (from 18GB to normal levels).
    • No visual impact for non-GPU-intensive applications.

    4️⃣ Limited VMware's Graphics Memory Usage

    βœ… Changes Made:

    1. Inside each VM β†’ Reduced display resolution to 1280x720.
    2. Disabled "Full Screen Mode" to reduce GPU memory overhead.

    βœ… Result:

    • Helped lower GPU-related RAM usage, but mksSandbox.exe was still consuming memory unless fully disabled.

    5️⃣ Cleared Standby List (Initially a Problem)

    βœ… Changes Made:

    1. Installed Intelligent Standby List Cleaner (ISLC) only on the host.
    2. Configured it to:
      • Purge Standby List when Free Memory is below 16000MB.
      • Clear Standby List automatically every few minutes.

    βœ… Result:

    • Initially, this freed up RAM, but after fixing Standby List hoarding, VMware was still consuming memory dynamically.

    6️⃣ Checked Resource Monitor for Hidden Memory Usage

    βœ… What We Found:

    1. Commit Charge was always at 100%, meaning VMware was reserving more memory than it should.
    2. mksSandbox.exe was still the largest RAM consumer.

    βœ… Result:

    • Proved that the real issue was VMware dynamically overcommitting RAM, not just the Standby List.

    7️⃣ Attempted to Release RAM Without Closing VMware

    βœ… Changes Made:

    1. Tried running the following command to force Windows to release unused RAM:
      rundll32.exe advapi32.dll,ProcessIdleTasks
    2. Tried manually reducing Working Set in Resource Monitor.

    ❌ Result:

    • Did NOT fix the issue. VMware was actively consuming RAM, not just holding it in Standby.

    8️⃣ Set Low Priority for mksSandbox.exe (Temporary Fix)

    βœ… Changes Made:

    1. Opened Task Manager (Ctrl + Shift + Esc).
    2. Found mksSandbox.exe β†’ Right-click β†’ Set Priority β†’ Low.
    3. Found mksSandbox.exe β†’ Right-click β†’ Set Affinity β†’ Limited to fewer CPU cores.

    βœ… Result:

    • NOTHING

    Thanks in advance!

    Attachment(s)

    log
    vmware-1.log   245 KB 1 version
    log
    vmware-0.log   310 KB 1 version
    log
    vmware-2.log   244 KB 1 version
    log
    mksSandbox-1.log   79 KB 1 version
    log
    vmware.log   591 KB 1 version
    log
    mksSandbox-2.log   79 KB 1 version
    log
    mksSandbox-0.log   79 KB 1 version
    log
    mksSandbox.log   118 KB 1 version
    txt
    DxDiag.txt   141 KB 1 version


  • 2.  RE: mksSandbox.exe memory bloat

    Broadcom Employee
    Posted Feb 28, 2025 11:06 AM

    It sounds like you have a memory leak in the graphics stack somewhere, either in VMware code, or in the host graphics drivers.

    Can you post a vmware.log and mksSandbox.log from one of the affected VMs when 3D is turned on?

    Otherwise, most of the Workstation memory settings you're adjusting only affect Guest main memory, not the graphics memory usage.

    There should be a setting in the Workstation UI under VM Settings => Display => Graphics Memory that you can adjust while the VM is fully powered off.  That will control the maximum amount of graphics resources that each VM is allowed to use on your Host (although it's measured in Guest resources, which don't strictly map byte-for-byte onto Host resources).  Lowering that setting should reduce the maximum amount of memory that the mksSandbox process will use on your Host during normal operation.  That said, if something is leaking here that might not be enough.

    I'd also recommend you try upgrading your Host's graphics drivers.  Our graphics team may be able to give you more specific suggestions after we've reviewed your logs.

    I'm also a little puzzled by what you describe in Trial 3... After disabling 3D graphics on a VM and doing a clean PowerOn, there shouldn't be any mksSandbox.exe processes running on your Host at all?




  • 3.  RE: mksSandbox.exe memory bloat

    Posted Feb 28, 2025 01:13 PM

    Did some chat gpt analysis on logs got his will try to to forse Directx 11

    Funny part that everything worked fine for weeks but i managed to reset BIOS by clicking back of pc i did bios update again did same setup clean os reinstal clean vm reinstal and this thing started to happen and keeps happening after multiple vm os reisntals :)

    πŸ›‘ Major Issues Identified

    1️⃣ VMware is Attempting to Use Vulkan but Failing

    From mksSandbox-2.log:

    pgsql
    2025-02-28T06:42:47.319Z In(05) mks Vulkan Renderer: No supported Vulkan device/driver found (See mks.vk.allowUnsupportedDevices or mks.vk.forceDevice configuration options).
    • VMware tries to initialize Vulkan but fails, likely causing mksSandbox.exe to fall back to DirectX 12.
    • When fallback happens, memory leaks can occur due to inefficient memory cleanup.

    2️⃣ DirectX 12 is Being Used, but VRAM Management is Unstable

    From mksSandbox-2.log:

    yaml
    2025-02-28T06:42:47.568Z In(05) mks DX12Module: Selected adapter: 2025-02-28T06:42:47.568Z In(05) mks DX12Module: NVIDIA GeForce RTX 4090
    • DirectX 12 is being selected for rendering, but VMware isn't properly managing VRAM allocations.
    • This can cause mksSandbox.exe to keep allocating VRAM without freeing it, leading to memory leaks.

    3️⃣ mksSandbox.exe is Attempting to Handle a Minimized Window Incorrectly

    • The fact that mksSandbox.exe doesn't leak RAM when the window is not minimized suggests a rendering bug when handling hidden windows.
    • VMware might be trying to render frames even when the window is minimized, leading to VRAM not being released properly.

    βœ… Fixes to Stop mksSandbox.exe From Leaking RAM

    🟒 Fix 1: Force DirectX 11 Instead of DirectX 12

    Since Vulkan fails and DirectX 12 has memory management issues, forcing DirectX 11 can stabilize memory usage.

    Steps:

    1. Open the VMX file (YourVM.vmx) in a text editor.
    2. Add the following lines:
      ini
      mks.enableDX12Renderer = "FALSE" mks.enableDX11Renderer = "TRUE"
    3. Save the file and restart VMware Workstation.

    βœ… Effect: Forces DirectX 11, which has better memory management than DX12 in VMware.


    🟒 Fix 2: Disable Vulkan to Prevent Unnecessary Fallback

    Since VMware fails to use Vulkan, prevent it from attempting Vulkan rendering.

    Steps:

    1. Add this line to the VMX file:
      ini
      mks.vk.allowUnsupportedDevices = "FALSE"
    2. Save and restart the VM.

    βœ… Effect: Prevents VMware from attempting Vulkan, reducing rendering errors.


    🟒 Fix 3: Disable Background Rendering for Minimized Windows

    Since mksSandbox.exe leaks RAM when the window is minimized, force it to stop rendering hidden windows.

    Steps:

    1. Add these lines to the VMX file:
      ini
      svga.noScreenBuffering = "TRUE" mks.noScreenBuffering = "TRUE"
    2. Save and restart VMware Workstation.

    βœ… Effect: Stops unnecessary rendering when the VM is minimized.


    🟒 Fix 4: Reduce VRAM Allocation to Prevent Memory Overflows

    Currently, VMware is allocating too much VRAM but not managing it properly.

    Steps:

    1. Modify the VRAM allocation in the VMX file:
      ini
      svga.vramSize = "2097152" # 2GB VRAM instead of 4GB
    2. Save the file and restart VMware Workstation.

    βœ… Effect: Prevents excessive VRAM allocation that leads to memory leaks.


    🟒 Fix 5: Use Remote Desktop Instead of VMware Console (Alternative)

    If Fixes 1-4 don't work, try running the VM via Remote Desktop (mstsc.exe), which bypasses mksSandbox.exe completely.

    Steps:

    1. Enable Remote Desktop inside the VM:
      • Open Settings β†’ System β†’ Remote Desktop.
      • Enable "Allow Remote Desktop connections".
    2. On your host machine, open mstsc.exe and connect to the VM.

    βœ… Effect: Completely eliminates mksSandbox.exe from consuming RAM.


    Attachment(s)

    log
    vmware.log   264 KB 1 version
    log
    vmware-0.log   305 KB 1 version
    log
    vmware-2.log   784 KB 1 version
    log
    vmware-1.log   222 KB 1 version


  • 4.  RE: mksSandbox.exe memory bloat

    Broadcom Employee
    Posted Feb 28, 2025 02:30 PM

    It's possible switching to DX11 might help, but otherwise the ChatGPT analysis there is pretty much completely wrong or nonsensical to me.

    If you can post your logs here, our development team can take a look and see if we can offer any suggestions.




  • 5.  RE: mksSandbox.exe memory bloat

    Posted Mar 01, 2025 03:57 AM
    These issues might occur with *3D acceleration disabled*. I am *reenabling
    3D acceleration* and reversing the changes I made to optimize performance
    without it.

    When *3D acceleration is off*, the *memory leak does not happen*.
    *More Details About My Case:*

    I run a *game that has a built-in autoclicker*, which *presses a few
    buttons and moves the mouse in a circular pattern*.

    - *If I keep the game open (not minimized to the tray), there is no
    memory leak.*
    - *If I minimize the game to the tray, the RAM usage instantly starts
    increasing (Host system mksSandbox.exe )*, until my *host system runs
    out of RAM and crashes the VM*.
    - *After the crash, all RAM is released.*

    *Important Observations:*

    - *While the memory leak happens, the guest system remains stable.*
    - The guest OS *only shows 50% memory usage*, and it *does not increase.*
    - The *leak is directly caused by minimizing the game to the tray.*
    - I *cannot keep the game open in full mode* because I *run six
    instances* of it.
    - *If I disable 3D acceleration, the experience becomes very
    laggy*, but *there
    is no memory leak*.




  • 6.  RE: mksSandbox.exe memory bloat
    Best Answer

    Posted Mar 01, 2025 03:57 AM

    Fingers crosed but after adding those lines to vmx it seems that it stopped bloating ram and mkssandbox ram is being released i mean it goes up to 180 and drops to 150-160 

    # Force DirectX 11
    mks.enableDX12Renderer = "FALSE"
    mks.enableDX11Renderer = "TRUE"

    # Disable Vulkan
    mks.vk.allowUnsupportedDevices = "FALSE"

    # Limit VRAM to Prevent Overflows
    svga.vramSize = "2097152"  # 2GB VRAM
    # OR
    # svga.vramSize = "4194304"  # 4GB VRAM

    # Stop VMware from Rendering Minimized Windows
    svga.noScreenBuffering = "TRUE"
    mks.noScreenBuffering = "TRUE"

    252452
    will recheck logs after more time to figure out what was that it seems Vulkan not running properly and Directx12 failing to render minimized to tray actions while 3D acceleration is  up. And all is fine after Vulkan and Dx12 disabled and forrsed Dx11




  • 7.  RE: mksSandbox.exe memory bloat

    Posted Mar 01, 2025 05:20 AM

    Seems disabling Vulkan and Dx12 and forsing DX11 was a solution. probably 10 hours latter completely stable and mks do noat bloat and if it goes up it is releasing  ram.




  • 8.  RE: mksSandbox.exe memory bloat

    Posted Mar 23, 2025 06:43 AM

    I think the unit of svga.vramSize is byte? My vm default value is 268435456, 268435456Γ·1024=262144 KB, 262144Γ·1024=256 MB. 




  • 9.  RE: mksSandbox.exe memory bloat

    Posted Apr 17, 2025 09:09 AM

    It seems that setsvga.vramSizetotally doesn't work - it will auto reset to default when vm launch. 




  • 10.  RE: mksSandbox.exe memory bloat

    Posted Apr 19, 2025 02:49 AM
    Edited by aa ab Apr 19, 2025 02:55 AM

    It is highly disappointing to see numerous reports in forums regarding issues with VMware Workstation Pro17.6.3 Windows 11, particularly concerning 3D acceleration on hosts running Windows 11 Pro, Windows 10 Pro, and the latest Windows updates. Unfortunately, there is still no hotfix or update from Broadcom to resolve this matter.

    I have made several changes to the VMX configuration, but none have yielded positive results.

    The issue: When using VMware with 3D acceleration, the host GPU is not utilized in the m.Sandbox, causing problems with DirectX 12, Vulkan, and a slowdown in VMware graphics. Rendering issues and other complications necessitate disabling 3D acceleration.

    Additionally, issue significantly increases RAM usage, which is consumed by the Sandbox.

    We respectfully request a resolution for this issue or the release of update 17.6.4. Thank you.

    this solution DONT work for me.

     
    # Force DirectX 11
    mks.enableDX12Renderer = "FALSE"
    mks.enableDX11Renderer = "TRUE"
     
    # Disable Vulkan
    mks.vk.allowUnsupportedDevices = "FALSE"
     
    # Stop VMware from Rendering Minimized Windows
    svga.noScreenBuffering = "TRUE"
    mks.noScreenBuffering = "TRUE"
    My Hardware :
    Systeminformationsbericht erstellt am: 04/19/25 08:54:15
    Systemname: DESKTOP
    [SystemΓΌbersicht]
     
    Element Wert
    Betriebsystemname Microsoft Windows 11 Pro
    Version 10.0.26100 Build 26100
    Weitere Betriebsystembeschreibung Nicht verfΓΌgbar
    Betriebsystemhersteller Microsoft Corporation
    Systemname DESKTOP
    Systemhersteller Acer
    Systemmodell Nitro AN517-41
    Systemtyp x64-basierter PC
    System-SKU 0000000000000000
    Prozessor AMD Ryzen 9 5900HX with Radeon Graphics, 3301 MHz, 8 Kern(e), 16 logische(r) Prozessor(en)
    BIOS-Version/-Datum Insyde Corp. V1.11, 11.07.2023
    SMBIOS-Version 3.3
    Version des eingebetteten Controllers 1.11
    BIOS-Modus UEFI
    BaseBoard-Hersteller CZ
    BaseBoard-Produkt Kamiq_CAS
    BaseBoard-Version V1.11
    Plattformrolle Mobil
    Sicherer Startzustand Ein
    PCR7-Konfiguration Erweiterung zum Anzeigen erforderlich
    Windows-Verzeichnis C:\Windows
    Systemverzeichnis C:\Windows\system32
    StartgerΓ€t \Device\HarddiskVolume2
    Gebietsschema Deutschland
    Hardwareabstraktionsebene Version = "10.0.26100.1"
    Benutzername DESKTOP\SPS01
    Zeitzone MitteleuropΓ€ische Sommerzeit
    Installierter physischer Speicher (RAM) 32,0 GB
    Gesamter physischer Speicher 31,4 GB
    VerfΓΌgbarer physischer Speicher 25,4 GB
    Gesamter virtueller Speicher 33,4 GB
    VerfΓΌgbarer virtueller Speicher 25,2 GB
    Grâße der Auslagerungsdatei 2,00 GB
    Auslagerungsdatei C:\pagefile.sys
    Kernel-DMA-Schutz Ein
    Virtualisierungsbasierte Sicherheit Nicht aktiviert
    App Control for Business-Richtlinie Überwachung
    App Control for Business-Benutzermodusrichtlinie Aus
    UnterstΓΌtzung fΓΌr automatische GerΓ€teverschlΓΌsselung Erweiterung zum Anzeigen erforderlich
    Hyper-V - VM-Monitormoduserweiterungen Ja
    Hyper-V - SLAT-Erweiterungen (Second Level Address Translation) Ja
    Hyper-V - Virtualisierung in Firmware aktiviert Ja
    Hyper-V - DatenausfΓΌhrungsverhinderung Ja
     
    [Hardwareressourcen]




  • 11.  RE: mksSandbox.exe memory bloat

    Posted Apr 19, 2025 12:04 PM

    After spending hours with Windows 11 settings and VMx, I found the solution to the behavior to normal functionality.

    My VMware Workstation Pro 17.6.3 now operates correctly.

    First, I describe the problem: laptops with two graphic cards onboard, like me, cause confusion for the VMware tool. Usually, Windows 11 Pro manages the graphic cards automatically, but after observing that the mks_Sandbox was switching between GPU0 and GPU1 on my computer, I decided to 

    DEACTIVATE one card in the Hardware Manager on the host. This resolved my issue. 

    Solution: Deactivate the onboard graphic card under the host.

    you don't need to do any kind of changes moor in the vmx config file.

    now under the vmware setting put 3D Acceleration back to AKTIV.

    this is only a hotfix works its works well for my Hardware. 




  • 12.  RE: mksSandbox.exe memory bloat

    Posted 4 days ago

    Where did you find these two configurations? Is there documentation or any other discussion about it?

    ```

    # Stop VMware from Rendering Minimized Windows
    svga.noScreenBuffering = "TRUE"
    mks.noScreenBuffering = "TRUE"

    ```




  • 13.  RE: mksSandbox.exe memory bloat

    Broadcom Employee
    Posted 4 days ago

    I don't believe those are real configuration settings in any current VMware product.




  • 14.  RE: mksSandbox.exe memory bloat

    Posted 4 days ago
    I agree with you. Even in the link below, I didn't find any information about these configurations.
     
    https://sanbarrow.com/vmx/vmx-advanced.html



  • 15.  RE: mksSandbox.exe memory bloat

    Posted Apr 23, 2025 09:36 AM
    Edited by Jason McClellan 11 days ago

    Today I just find that audio seems could causing this issue. I open my microphone, then just run audacity, enable Silent monitoring, then keep vm idle (needn't start recording).

    20250629 update: It seems that this bug only happens when microphone is open. And, if I set "DISABLE_VULKAN_OBS_CAPTURE", obs couldn't capture screen records for several programs, including vmware vm's screen. 




  • 16.  RE: mksSandbox.exe memory bloat

    Posted Apr 24, 2025 09:17 AM

    Maybe you wanna check this https://community.broadcom.com/vmware-cloud-foundation/discussion/bug-report-unnecessary-library-loading-in-vmware-workstation




  • 17.  RE: mksSandbox.exe memory bloat

    Posted 5 days ago

    It seems doesn't work. And I find that memory float bug seems only happens when vm using microphone.