[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69BMX6T725RH7TZK7RDP8YQ":3,"skill-same:01M69BMX6T725RH7TZK7RDP8YQ":50},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":22,"linkOnly":23,"markdownContent":24,"markdownBody":25,"frontMatter":26,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M69BMX6T725RH7TZK7RDP8YQ","windbg-user-virtual-memory-exhaustion",null,"Use when a native app, service, or user-mode driver host allocation fails; distinguish VA exhaustion, fragmentation, and commit pressure. Not for managed .NET heap growth, proving a leak from one snapshot, or corruption.","microsoft\u002Fwin-dev-skills","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69BM5T5HHSGVF6KZPTNENXK",510,"MIT","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fwin-dev-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fwindbg\u002Fskills\u002Fwindbg-user-virtual-memory-exhaustion\u002FSKILL.md",[],[19,20,21],"memory","windbg user virtual memory exhaustion","commit","2026-11-10 10:12:30",false,"---\nname: windbg-user-virtual-memory-exhaustion\ndescription: 'Use when a native app, service, or user-mode driver host allocation fails; distinguish VA exhaustion, fragmentation, and commit pressure. Not for managed .NET heap growth, proving a leak from one snapshot, or corruption.'\n---\n\n# Virtual Memory Exhaustion\n\n**Load `windbg-diagnostic-method` first** if it is not already loaded in this\nconversation, and apply it throughout for evidence ranking, hypothesis testing,\nconfidence calibration, independent review, and report validation. This skill\nadds the bug-family-specific commands and evidence requirements.\n\n## Detection\n\nInvestigate `E_OUTOFMEMORY` (`0x8007000E`), `STATUS_NO_MEMORY` (`0xC0000017`),\n`bad_alloc`, or failed heap\u002Fvirtual allocations in an application, service, or\nuser-mode driver host (including UMDF). Record the actual API, requested\nsize\u002Falignment, architecture, flags, and error. Free physical RAM does not rule\nout insufficient virtual address space, commit pressure, or applicable limits.\n\n## Workflow\n\n### 1. Examine the process VA map\n\n```text\n!address -summary\n!address\n!heap -s\n```\n\nCompare available regions with the attempted allocation's contiguous range and\nalignment requirements. Distinguish reserved, committed, free, image, mapped,\nstack, and heap ranges. A large reservation consumes VA without committing its\nentire range. Heap internals may require more than the user's requested bytes.\n\nReport unavailable pages\u002Fmap data rather than inferring completeness from a\nlimited dump.\n\n### 2. Separate pressure mechanisms\n\n| Mechanism | Evidence needed |\n|---|---|\n| VA exhaustion | Process address range\u002Farchitecture and little usable free VA |\n| Fragmentation | Free space exists, but no suitable contiguous\u002Faligned region |\n| System commit pressure | Commit usage\u002Flimit near the failure, not just free RAM |\n| Process\u002Fjob memory limit | Actual configured limit and relevant usage\u002Faccounting |\n| Allocation policy\u002FAPI failure | API-specific constraints, flags, or allocator policy |\n\nUse contemporaneous system memory counters or an appropriate live\u002Fkernel\nsession for system commit data. A process PEB is not a documented\n`MaximumCommit` source. A process's committed bytes alone do not establish a\nsystem-wide or job limit.\n\nFor 32-bit targets inspect `\u002FLARGEADDRESSAWARE` and the host architecture;\n2 GB versus up to 4 GB depends on those settings. Verify current documented\nlimits for the target Windows version and architecture instead of applying\none 64-bit limit to every system.\n\n### 3. Identify dominant consumers\n\n```text\n!address -f:Heap\n!address -f:Stack\n!heap -stat -h \u003Cheap-address>\n```\n\nUse `!address -?` and `!heap -?` for allocator\u002Fversion-specific support.\nClassify dominant heaps, stacks, mappings, images, and reserved arenas.\nLarge or numerous allocations are not automatically leaks: map them to cache\npolicy, owners, workload, and expected lifetimes.\n\n### 4. Establish growth with history\n\nCollect authorized time-series counters, repeated comparable snapshots, or\nallocation\u002Ffree tracing across the workload. Compare warm-up with steady-state\nbehavior and verify whether memory is reclaimed when work finishes.\n\nOne snapshot plus process uptime cannot prove a leak rate. For a suitable\nuser-mode recording use `windbg-user-ttd-reverse-debugging-triage`; for damaged allocations\nuse `windbg-user-heap-corruption-investigation` instead.\n\n## Fix patterns\n\n- Bound caches by an appropriate size\u002Fcost policy and verify eviction.\n  Define the lifetime of any references returned before eviction.\n- Match `VirtualAlloc` reservations with the correct `VirtualFree` release\n  contract; distinguish decommit from release.\n- Use RAII to release resources on all supported exit\u002Ferror paths.\n- Reduce large contiguous allocation requirements where the design permits.\n- Do not blindly increase limits or stack reservations before finding the\n  pressure source, and do not convert a failed allocation into a silent success.\n\n## Validation\n\nName the failing allocation and pressure mechanism, identify the consumer with\nevidence, and exercise the remedy through warm-up, sustained load, and cleanup.\nVerify memory remains bounded or the intended allocation succeeds under the\nrequired constraints. Document configured system\u002Fjob limits separately.\n\n## References\n\n- [Address extension](https:\u002F\u002Flearn.microsoft.com\u002Fwindows-hardware\u002Fdrivers\u002Fdebuggercmds\u002F-address)\n- [Heap extension](https:\u002F\u002Flearn.microsoft.com\u002Fwindows-hardware\u002Fdrivers\u002Fdebuggercmds\u002F-heap)\n- [Windows memory limits](https:\u002F\u002Flearn.microsoft.com\u002Fwindows\u002Fwin32\u002Fmemory\u002Fmemory-limits-for-windows-releases)\n- [Large-address-aware linker option](https:\u002F\u002Flearn.microsoft.com\u002Fcpp\u002Fbuild\u002Freference\u002Flargeaddressaware-handle-large-addresses)\n- [VirtualFree](https:\u002F\u002Flearn.microsoft.com\u002Fwindows\u002Fwin32\u002Fapi\u002Fmemoryapi\u002Fnf-memoryapi-virtualfree)\n\n## Feedback\n\nFollow `FEEDBACK.md` and submit reviewed, sanitized feedback to\n[WinDbg-Feedback](https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FWinDbg-Feedback\u002Fissues).\nInclude `windbg-user-virtual-memory-exhaustion` and the package version from `plugin.json`;\nno automatic dump or memory-content upload.\n","# Virtual Memory Exhaustion\n\n**Load `windbg-diagnostic-method` first** if it is not already loaded in this\nconversation, and apply it throughout for evidence ranking, hypothesis testing,\nconfidence calibration, independent review, and report validation. This skill\nadds the bug-family-specific commands and evidence requirements.\n\n## Detection\n\nInvestigate `E_OUTOFMEMORY` (`0x8007000E`), `STATUS_NO_MEMORY` (`0xC0000017`),\n`bad_alloc`, or failed heap\u002Fvirtual allocations in an application, service, or\nuser-mode driver host (including UMDF). Record the actual API, requested\nsize\u002Falignment, architecture, flags, and error. Free physical RAM does not rule\nout insufficient virtual address space, commit pressure, or applicable limits.\n\n## Workflow\n\n### 1. Examine the process VA map\n\n```text\n!address -summary\n!address\n!heap -s\n```\n\nCompare available regions with the attempted allocation's contiguous range and\nalignment requirements. Distinguish reserved, committed, free, image, mapped,\nstack, and heap ranges. A large reservation consumes VA without committing its\nentire range. Heap internals may require more than the user's requested bytes.\n\nReport unavailable pages\u002Fmap data rather than inferring completeness from a\nlimited dump.\n\n### 2. Separate pressure mechanisms\n\n| Mechanism | Evidence needed |\n|---|---|\n| VA exhaustion | Process address range\u002Farchitecture and little usable free VA |\n| Fragmentation | Free space exists, but no suitable contiguous\u002Faligned region |\n| System commit pressure | Commit usage\u002Flimit near the failure, not just free RAM |\n| Process\u002Fjob memory limit | Actual configured limit and relevant usage\u002Faccounting |\n| Allocation policy\u002FAPI failure | API-specific constraints, flags, or allocator policy |\n\nUse contemporaneous system memory counters or an appropriate live\u002Fkernel\nsession for system commit data. A process PEB is not a documented\n`MaximumCommit` source. A process's committed bytes alone do not establish a\nsystem-wide or job limit.\n\nFor 32-bit targets inspect `\u002FLARGEADDRESSAWARE` and the host architecture;\n2 GB versus up to 4 GB depends on those settings. Verify current documented\nlimits for the target Windows version and architecture instead of applying\none 64-bit limit to every system.\n\n### 3. Identify dominant consumers\n\n```text\n!address -f:Heap\n!address -f:Stack\n!heap -stat -h \u003Cheap-address>\n```\n\nUse `!address -?` and `!heap -?` for allocator\u002Fversion-specific support.\nClassify dominant heaps, stacks, mappings, images, and reserved arenas.\nLarge or numerous allocations are not automatically leaks: map them to cache\npolicy, owners, workload, and expected lifetimes.\n\n### 4. Establish growth with history\n\nCollect authorized time-series counters, repeated comparable snapshots, or\nallocation\u002Ffree tracing across the workload. Compare warm-up with steady-state\nbehavior and verify whether memory is reclaimed when work finishes.\n\nOne snapshot plus process uptime cannot prove a leak rate. For a suitable\nuser-mode recording use `windbg-user-ttd-reverse-debugging-triage`; for damaged allocations\nuse `windbg-user-heap-corruption-investigation` instead.\n\n## Fix patterns\n\n- Bound caches by an appropriate size\u002Fcost policy and verify eviction.\n  Define the lifetime of any references returned before eviction.\n- Match `VirtualAlloc` reservations with the correct `VirtualFree` release\n  contract; distinguish decommit from release.\n- Use RAII to release resources on all supported exit\u002Ferror paths.\n- Reduce large contiguous allocation requirements where the design permits.\n- Do not blindly increase limits or stack reservations before finding the\n  pressure source, and do not convert a failed allocation into a silent success.\n\n## Validation\n\nName the failing allocation and pressure mechanism, identify the consumer with\nevidence, and exercise the remedy through warm-up, sustained load, and cleanup.\nVerify memory remains bounded or the intended allocation succeeds under the\nrequired constraints. Document configured system\u002Fjob limits separately.\n\n## References\n\n- [Address extension](https:\u002F\u002Flearn.microsoft.com\u002Fwindows-hardware\u002Fdrivers\u002Fdebuggercmds\u002F-address)\n- [Heap extension](https:\u002F\u002Flearn.microsoft.com\u002Fwindows-hardware\u002Fdrivers\u002Fdebuggercmds\u002F-heap)\n- [Windows memory limits](https:\u002F\u002Flearn.microsoft.com\u002Fwindows\u002Fwin32\u002Fmemory\u002Fmemory-limits-for-windows-releases)\n- [Large-address-aware linker option](https:\u002F\u002Flearn.microsoft.com\u002Fcpp\u002Fbuild\u002Freference\u002Flargeaddressaware-handle-large-addresses)\n- [VirtualFree](https:\u002F\u002Flearn.microsoft.com\u002Fwindows\u002Fwin32\u002Fapi\u002Fmemoryapi\u002Fnf-memoryapi-virtualfree)\n\n## Feedback\n\nFollow `FEEDBACK.md` and submit reviewed, sanitized feedback to\n[WinDbg-Feedback](https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FWinDbg-Feedback\u002Fissues).\nInclude `windbg-user-virtual-memory-exhaustion` and the package version from `plugin.json`;\nno automatic dump or memory-content upload.\n",{"name":5,"description":7},"main","5ce74fa89c49ca353c6ab03bd5889aa519aa9e5e","plugins\u002Fwindbg\u002Fskills\u002Fwindbg-user-virtual-memory-exhaustion",41,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fwin-dev-skills","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-09 06:27:16",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add microsoft\u002Fwin-dev-skills --skill windbg-user-virtual-memory-exhaustion",{"tool":42,"command":43},"bunx","bunx skills add microsoft\u002Fwin-dev-skills --skill windbg-user-virtual-memory-exhaustion",{"tool":45,"command":46},"pnpm","pnpm dlx skills add microsoft\u002Fwin-dev-skills --skill windbg-user-virtual-memory-exhaustion","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fwin-dev-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fwindbg\u002Fskills\u002Fwindbg-user-virtual-memory-exhaustion\u002FSKILL.md",true,[],[51,69,77,88,98,106],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":65,"publishedAt":22},"01M69BN1YCR77KBJHPBB1KBXAB","sample-skill","Sample skill used to test the catalog tooling. Use when testing CI. Not for real work.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fwin-dev-skills\u002Fblob\u002Fmain\u002Fscripts\u002Ftests\u002Ffixtures\u002Flocal-plugin\u002Fplugins\u002Fsample\u002Fskills\u002Fsample-skill\u002FSKILL.md",[57,62],{"categoryNo":58,"categoryName":59,"taxonomyType":60,"taxonomyTypeDesc":61},"01JBSEEDCAT000000000000008","测试与质量","SCENARIO","使用场景",{"categoryNo":63,"categoryName":64,"taxonomyType":60,"taxonomyTypeDesc":61},"01JBSEEDCAT000000000000023","Skill与智能体开发",[66,67,68],"sample skill","testing","test",{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":22},"01M69BMZFWAWBRE71DKPHT282F","windbg-user-wait-chain-analysis","Use when an app, service, or user-mode driver host is unresponsive on locks, COM\u002FRPC, I\u002FO, or another process; follow the blocker chain. Not for a crash solely from an exception stack.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fwin-dev-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fwindbg\u002Fskills\u002Fwindbg-user-wait-chain-analysis\u002FSKILL.md",[],[76],"windbg user wait chain analysis",{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":22},"01M69BMTTSCGTJ6W18YNYDWEVE","windbg-user-ttd-reverse-debugging-triage","Use when an app, service, or user-mode driver host TTD recording is available and earlier calls, writes, or lifetimes matter. Not for kernel replay or history from a normal dump.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fwin-dev-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fwindbg\u002Fskills\u002Fwindbg-user-ttd-reverse-debugging-triage\u002FSKILL.md",[],[84,85,86,87],"windbg user ttd reverse debugging triage","debugging","triage","kernel",{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":22},"01M69BMRKH2MF07GD357PK5S4Q","windbg-user-mutex-held-across-co-await","Use when app, service, or user-mode driver C++ coroutine code holds a thread-affine lock across suspension and later hangs or fails. Not for all coroutine crashes or choosing lock performance.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fwin-dev-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fwindbg\u002Fskills\u002Fwindbg-user-mutex-held-across-co-await\u002FSKILL.md",[],[95,96,97],"windbg user mutex held across co await","performance","code",{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":22},"01M69BMPFX7S3D729F1N89AAP6","windbg-user-heap-corruption-investigation","Use when an app, service, or user-mode driver host heap fails or Application Verifier detects corruption; inspect history and bounds. Not for kernel pool corruption or ordinary OOM.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fwin-dev-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fwindbg\u002Fskills\u002Fwindbg-user-heap-corruption-investigation\u002FSKILL.md",[],[105,87],"windbg user heap corruption investigation",{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":22},"01M69BMM5G8J8WJWKBWB6J0SA7","windbg-user-exception-triage","Use when a native C\u002FC++ app, service, or user-mode driver host (including UMDF) crashes with a structured exception in a dump or WinDbg session, including native faults inside managed processes. Not for managed .NET exceptions, WinUI\u002FXAML app errors, or kernel bugchecks.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fwin-dev-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fwindbg\u002Fskills\u002Fwindbg-user-exception-triage\u002FSKILL.md",[],[113,86,87,114,115],"windbg user exception triage","xaml","winui"]