JS Heap Size Limit

Back to Main

Maximum JS Heap Size

Checking...

Note: Chrome-only. Maximum memory the JavaScript engine can allocate.

1. Technical Classification

Performance APIChrome-onlyMemory LimitSystem Info

The jsHeapSizeLimit property reveals the maximum amount of memory the JavaScript engine will allocate before triggering out-of-memory errors. This limit is based on system RAM and browser architecture (32-bit vs 64-bit).

2. Background & Purpose

This was added alongside usedJSHeapSize to help developers understand memory constraints. Knowing the limit helps developers design applications that won't crash due to memory exhaustion.

Why It Exists

3. Possible Values & Detection

Typical Limits

32-bit Chrome

~512 MB - Limited by 32-bit address space

64-bit Chrome (4GB RAM)

~1-2 GB - Limited by available system memory

64-bit Chrome (16GB+ RAM)

~4 GB - Generous limit on high-memory systems

Detection Code

if (performance.memory) { const limitMB = Math.round(performance.memory.jsHeapSizeLimit / 1024 / 1024); console.log('Heap limit:', limitMB, 'MB'); }

4. Common Legitimate Uses

Application Development

5. Browser & Platform Differences

SystemTypical LimitNotes
64-bit Chrome (16GB RAM)4096 MBHigh-memory desktop
64-bit Chrome (8GB RAM)2048 MBStandard laptop
64-bit Chrome (4GB RAM)1024-1536 MBLow-memory device
32-bit Chrome512 MBArchitectural limit
Mobile Chrome256-512 MBLimited by mobile RAM
Firefox/SafariN/AAPI not available

6. Privacy Implications & Tracking Risks

Privacy Risk: LOW-MEDIUM

Heap limit reveals system memory tier, helping fingerprint device type and specifications.

What It Reveals

While not uniquely identifying, this contributes to device fingerprinting by narrowing down system specifications.

7. How to Control This Feature

Limited control options:

8. Learn More