DocsMemoryOptimizationMemoryOptimizationManual memory optimization and GC.1 min readDocumentationEdit this pageOptimize# typescriptimport { optimizer } from '@axiljs/memory' const result = await optimizer.optimize() result.freedMb result.gcTriggered result.actions GC# typescriptimport { triggerGC, isGCAvailable } from '@axiljs/memory' if (isGCAvailable()) triggerGC() Enable with: node --expose-gc dist/main.jsPreviousLeak DetectionNextOverview