{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,10,29]],"date-time":"2025-10-29T03:49:40Z","timestamp":1761709780471,"version":"3.41.0"},"reference-count":16,"publisher":"Association for Computing Machinery (ACM)","issue":"11","license":[{"start":{"date-parts":[[2020,10,22]],"date-time":"2020-10-22T00:00:00Z","timestamp":1603324800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"funder":[{"name":"National Science Foundation","award":["1637536"],"award-info":[{"award-number":["1637536"]}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Commun. ACM"],"published-print":{"date-parts":[[2020,10,22]]},"abstract":"<jats:p>Memory leaks in web applications are pervasive and difficult to debug. Leaks degrade responsiveness by increasing garbage collection costs and can even lead to browser tab crashes. Previous leak detection approaches designed for conventional applications are ineffective in the browser environment. Tracking down leaks currently requires intensive manual effort by web developers, which is often unsuccessful.<\/jats:p>\n          <jats:p>This paper introduces BLEAK (Browser Leak debugger), the first system for automatically debugging memory leaks in web applications. BLEAK'S algorithms leverage the observation that in modern web applications, users often repeatedly return to the same (approximate) visual state (e.g., the inbox view in Gmail). Sustained growth between round trips is a strong indicator of a memory leak. To use BLEAK, a developer writes a short script (17-73 LOC on our benchmarks) to drive a web application in round trips to the same visual state. BLEAK then automatically generates a list of leaks found along with their root causes, ranked by return on investment. Guided by BLEAK, we identify and fix over 50 memory leaks in popular libraries and apps including Airbnb, AngularJS, Google Analytics, Google Maps SDK, and jQuery. BLEAK'S median precision is 100%; fixing the leaks it identifies reduces heap growth by an average of 94%, saving from 0.5MB to 8MB per round trip.<\/jats:p>","DOI":"10.1145\/3422598","type":"journal-article","created":{"date-parts":[[2020,10,22]],"date-time":"2020-10-22T18:17:26Z","timestamp":1603390646000},"page":"146-153","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":5,"title":["BLeak"],"prefix":"10.1145","volume":"63","author":[{"given":"John","family":"Vilk","sequence":"first","affiliation":[{"name":"University of Massachusetts Amherst"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Emery D.","family":"Berger","sequence":"additional","affiliation":[{"name":"University of Massachusetts Amherst"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2020,10,22]]},"reference":[{"key":"e_1_2_1_1_1","volume-title":"Fix memory problems","author":"Basques K.","year":"2017","unstructured":"Basques, K. Fix memory problems, 2017. https:\/\/developers.google.com\/web\/tools\/chrome-devtools\/memory-problems\/."},{"key":"e_1_2_1_2_1","volume-title":"ACM","author":"Bond M.D.","year":"2006","unstructured":"Bond, M.D., McKinley, K.S. Bell: Bit-encoding online memory leak detection. In ASPLOS, ACM, San Jose, CA, 2006, 61--72."},{"key":"e_1_2_1_3_1","first-page":"524","article-title":"Pinpointing the causes of memory leaks. In ICSE, ACM, Cape Town","volume":"515","author":"Clause J.A.","year":"2010","unstructured":"Clause, J.A., Orso, A. LEAKPOINT: Pinpointing the causes of memory leaks. In ICSE, ACM, Cape Town, South Africa, 2010, 515--524.","journal-title":"South Africa"},{"key":"e_1_2_1_4_1","volume-title":"Speed up google chrome","author":"Google","year":"2017","unstructured":"Google. Speed up google chrome, 2017. https:\/\/support.google.com\/chrome\/answer\/1385029."},{"key":"e_1_2_1_5_1","volume-title":"Oilpan: GC for blink","author":"Hara K.","year":"2013","unstructured":"Hara, K. Oilpan: GC for blink, 2013. https:\/\/docs.google.com\/presentation\/d\/1YtfurcyKFS0hxP0nC3U6JJroM8aRP49Yf0QWznZ9jrk."},{"key":"e_1_2_1_6_1","volume-title":"ACM","author":"Hauswirth M.","year":"2004","unstructured":"Hauswirth, M., Chilimbi, T.M. Low-overhead memory leak detection using adaptive statistical profiling. In ASPLOS, ACM, Boston, MA, 2004, 156--164."},{"key":"e_1_2_1_7_1","first-page":"356","article-title":"Platform-independent memory debugging for JavaScript. In FSE, ACM, Bergamo","volume":"345","author":"Jensen S.H.","year":"2015","unstructured":"Jensen, S.H., Sridharan, M., Sen, K., Chandra, S. MemInsight: Platform-independent memory debugging for JavaScript. In FSE, ACM, Bergamo, Italy, 2015, 345--356.","journal-title":"Italy"},{"key":"e_1_2_1_8_1","volume-title":"BloatBusters: Eliminating memory leaks in Gmail","author":"Lee L","year":"2012","unstructured":"Lee, L, Hundt, R. BloatBusters: Eliminating memory leaks in Gmail, 2012. https:\/\/docs.google.com\/presentation\/d\/lwUVmf78gG-ra5aOxvTfYdiLkdGaR9OhXRnOlIcEmu2s."},{"key":"e_1_2_1_9_1","first-page":"377","article-title":"An automated and lightweight tool for diagnosing memory leaks in large Java applications","volume":"351","author":"Mitchell N.","year":"2003","unstructured":"Mitchell, N., Sevitsky, G. LeakBot: An automated and lightweight tool for diagnosing memory leaks in large Java applications. In ECOOP, 2003, 351--377.","journal-title":"ECOOP"},{"key":"e_1_2_1_10_1","volume-title":"about: memory","author":"Mozilla","year":"2017","unstructured":"Mozilla. about: memory, 2017. https:\/\/developer.mozilla.org\/en-US\/docs\/Mozilla\/Performance\/about:memory."},{"key":"e_1_2_1_11_1","volume-title":"The best firefox ever","author":"Nguyen N.","year":"2017","unstructured":"Nguyen, N. The best firefox ever, 2017. https:\/\/blog.mozilla.org\/blog\/2017\/06\/13\/faster-better-firefox\/."},{"key":"e_1_2_1_12_1","first-page":"407","article-title":"Efficiently and precisely locating memory leaks and bloat. In PLDI, ACM, Dublin","volume":"397","author":"Novark G.","year":"2009","unstructured":"Novark, G., Berger, E.D., Zorn, B.G. Efficiently and precisely locating memory leaks and bloat. In PLDI, ACM, Dublin, Ireland, 2009, 397--407.","journal-title":"Ireland"},{"key":"e_1_2_1_13_1","first-page":"1","article-title":"Static analysis for JavaScript memory leaks. In CGO, IEEE Computer Society, Shenzhen","volume":"11","author":"Pienaar J.A.","year":"2013","unstructured":"Pienaar, J.A., Hundt, R. JSWhiz: Static analysis for JavaScript memory leaks. In CGO, IEEE Computer Society, Shenzhen, China, 2013, 11:1--11:11.","journal-title":"China"},{"key":"e_1_2_1_14_1","first-page":"47","article-title":"Detection and diagnosis of memory leaks in javascript applications","volume":"1","author":"Rudafshani M.","year":"2017","unstructured":"Rudafshani, M., Ward, P.A.S. Leakspot: Detection and diagnosis of memory leaks in javascript applications. Softw. Pract. Exp. 1, 47 (2017), 97--123.","journal-title":"Softw. Pract. Exp."},{"key":"e_1_2_1_15_1","first-page":"29","article-title":"Automatically debugging memory leaks in web applications. In PLDI, ACM, Philadelphia","volume":"15","author":"Vilk J.","year":"2018","unstructured":"Vilk, J., Berger, E.D. BLEAK: Automatically debugging memory leaks in web applications. In PLDI, ACM, Philadelphia, PA, 2018, 15--29.","journal-title":"PA"},{"key":"e_1_2_1_16_1","doi-asserted-by":"crossref","unstructured":"Xu G.H. Rountev A. Precise memory leak detection for Java software using container profiling. TOSEM 3 22 (2013):17:1--17:28.","DOI":"10.1145\/2491509.2491511"}],"container-title":["Communications of the ACM"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3422598","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3422598","content-type":"application\/pdf","content-version":"vor","intended-application":"syndication"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3422598","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T21:31:28Z","timestamp":1750195888000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3422598"}},"subtitle":["automatically debugging memory leaks in web applications"],"short-title":[],"issued":{"date-parts":[[2020,10,22]]},"references-count":16,"journal-issue":{"issue":"11","published-print":{"date-parts":[[2020,10,22]]}},"alternative-id":["10.1145\/3422598"],"URL":"https:\/\/doi.org\/10.1145\/3422598","relation":{},"ISSN":["0001-0782","1557-7317"],"issn-type":[{"type":"print","value":"0001-0782"},{"type":"electronic","value":"1557-7317"}],"subject":[],"published":{"date-parts":[[2020,10,22]]},"assertion":[{"value":"2020-10-22","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}