• Home
  • Search
  • Optimal heap limits for reducing browser memory use
  • Cite Icon3
  • https://doi.org/10.1145/3563323Copy DOI Icon

Optimal heap limits for reducing browser memory use

Show More
  • Abstract
  • Highlights & Summary
  • PDF
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Garbage-collected language runtimes carefully tune heap limits to reduce garbage collection time and memory usage. However, there's a trade-off: a lower heap limit reduces memory use but increases garbage collection time. Classic methods for setting heap limits include manually tuned heap limits and multiple-of-live-size rules of thumb, but it is not clear when one rule is better than another or how to compare them. We address this problem with a new framework where heap limits are set for multiple heaps at once. Our key insight is that every heap limit rule induces a particular allocation of memory across multiple processes, and this allocation can be sub-optimal. We use our framework to derive an optimal "square-root" heap limit rule, which minimizes total memory usage for any amount of total garbage collection time. Paradoxically, the square-root heap limit rule achieves this coordination without communication: it allocates memory optimally across multiple heaps without requiring any communication between those heaps. To demonstrate that this heap limit rule is effective, we prototype it for V8, the JavaScript runtime used in Google Chrome, Microsoft Edge, and other browsers, as well as in server-side frameworks like node.js and Deno. On real-world web pages, our prototype achieves reductions of approximately 16.0% of memory usage while keeping garbage collection time constant. On memory-intensive benchmarks, reductions of up to 30.0% of garbage collection time are possible with no change in total memory usage.

Loading PDF

Similar Papers
  • Conference Article
  • Citations8

A performance analysis of the active memory system

  • Sep 23, 2001
  • Witawas Srisa-An +3
  • Conference Article

Fine-tuning ResNet-50 for medical image processing: impact of batch size and training epochs on energy consumption

  • Mar 15, 2026
  • David Cortes +2
  • Book Chapter
  • Citations1

Is Web Browsing Secure?

  • Jan 01, 2022
  • Moisés Ramires +4
  • Conference Article
  • Citations1

MURS: Mitigating Memory Pressure in Service-Oriented Data Processing System

  • Jun 01, 2017
  • Xuanhua Shi +5
  • Research Article
  • Citations7

Blockchain oracles for decentralized agricultural insurance using trusted IoT data

  • Jan 13, 2025
  • Frontiers in Blockchain
  • Manoj T +3
  • Research Article
  • Citations20

An abstraction layer for efficient memory management of tabulated chemistry and flamelet solutions

  • Jun 01, 2013
  • Combustion Theory and Modelling
  • Steffen Weise +3
  • Research Article
  • Citations4

On Improving the Solution by Using Lower Bound Finite Elements Limit Analysis and Linear Programming

  • Jan 15, 2011
  • Geotechnical and Geological Engineering
  • Jyant Kumar +1
  • Conference Article
  • Citations23

WebAssembly versus JavaScript: Energy and Runtime Performance

  • Jun 01, 2022
  • Joao De Macedo +3
  • Research Article
  • Citations5

Chracer: Memory analysis of Chromium-based browsers

  • Oct 01, 2023
  • Forensic Science International: Digital Investigation
  • Geunyeong Choi +3
  • Research Article

Rethinking the synthesis of buses, data mapping, and memory allocation for MPSoC

  • Jun 11, 2008
  • Design Automation for Embedded Systems
  • Brett H Meyer +1
  • Dissertation

Estudo exploratório do desempenho de alocadores de memória no espaço do usuário

  • Nov 21, 2014
  • Diego Elias Damasceno Costa
  • Research Article
  • Citations20

A cost model for random access queries in document stores

  • Mar 24, 2021
  • The VLDB Journal
  • Moditha Hewasinghage +3
  • PDF
  • Research Article
  • Citations3

A Thought-Operated Digital Random-Access Memory.

  • Jun 09, 2019
  • Computational intelligence and neuroscience
  • Lee Ben-Ami +1
  • Research Article
  • Citations62

Garbarge collection for Prolog based on WAM

  • Jun 01, 1988
  • Communications of the ACM
  • Karen Appleby +3
  • Conference Article
  • Citations91

Improving distributed workload performance by sharing both CPU and memory resources

  • Apr 10, 2000
  • Xiaodong Zhang +2
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.