feat: memory management config

This commit is contained in:
amhsirak
2025-01-06 11:47:56 +05:30
parent 9d0964727a
commit d79b2fd807

View File

@@ -21,6 +21,14 @@ import { getInjectableScript } from 'idcac-playwright';
import { BackendPerformanceMonitor } from '../../../../perf/performance'
chromium.use(stealthPlugin());
// Memory management configuration
const MEMORY_CONFIG = {
gcInterval: 60000, // 1 minute
maxHeapSize: 2048 * 1024 * 1024, // 2GB
heapUsageThreshold: 0.85 // 85%
};
/**
* This class represents a remote browser instance.