[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
12

Configure Feed

Select the types of activity you want to include in your feed.

fix(pool): vm pools to respect cgroupsv2 memory limit (#10721)

authored by

Milas Bowman and committed by
GitHub
(Jul 15, 2026, 5:32 PM +0900) 3923cab3 3e3e8528

+2 -1
+2 -1
packages/vitest/src/node/pool.ts
··· 6 6 import type { TestSpecification } from './test-specification' 7 7 import type { BuiltinPool, ResolvedConfig } from './types/config' 8 8 import * as nodeos from 'node:os' 9 + import process from 'node:process' 9 10 import { isatty } from 'node:tty' 10 11 import { resolve } from 'pathe' 11 12 import { version as viteVersion } from 'vite' ··· 335 336 return null 336 337 } 337 338 338 - const memory = nodeos.totalmem() 339 + const memory = process.constrainedMemory?.() || nodeos.totalmem() 339 340 const limit = getWorkerMemoryLimit(config) 340 341 341 342 if (typeof memory === 'number') {