{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,23]],"date-time":"2026-10-23T20:31:16Z","timestamp":1792787476703,"version":"4.5.0"},"reference-count":54,"publisher":"Association for Computing Machinery (ACM)","issue":"PLDI","license":[{"start":{"date-parts":[[2026,6,8]],"date-time":"2026-06-08T00:00:00Z","timestamp":1780876800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/legalcode"}],"funder":[{"name":"AERO","award":["101092850"],"award-info":[{"award-number":["101092850"]}],"id":[{"id":"https:\/\/ror.org\/00pm8fq14","id-type":"ROR","asserted-by":"crossref"}]},{"name":"EUPEX","award":["101033975"],"award-info":[{"award-number":["101033975"]}]},{"name":"VMware\u2019s University Research Fund","award":["11535"],"award-info":[{"award-number":["11535"]}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2026,6,8]]},"abstract":"<jats:p>Popular JVM-based search and analytics systems, such as Elasticsearch and Spark, rely on the OS page cache (I\/O cache) to accelerate storage access. However, dividing memory between the JVM heap and the I\/O cache creates a trade-off: enlarging the heap reduces garbage collection (GC) overhead but starves the I\/O cache, while shrinking it improves I\/O performance but raises GC cost. Existing heap resizing mechanisms ignore I\/O and thus fail to address this trade-off, resulting in inefficient memory utilization and degraded performance.<\/jats:p>\n                  <jats:p>In this paper, we propose FlexHeap, a heap resizing mechanism for Garbage First (G1), the default OpenJDK garbage collector, that dynamically partitions a fixed DRAM budget between the JVM heap and the I\/O cache. Between GC intervals, it estimates the CPU time lost to GC and to I\/O stalls and repartitions DRAM to reduce their combined cost. FlexHeap relies on three concepts: (1) It makes resizing decisions using G1 collection boundaries. (2) It uses a history-based approach to estimate the cost of GC and I\/O stalls for the future intervals. (3) It uses an adaptive resizing step that scales with changes in the combined cost.<\/jats:p>\n                  <jats:p>\n                    We implement FlexHeap in OpenJDK 21\u2019s G1 garbage collector and evaluate it on two widely used systems: the Elasticsearch search engine and the Spark analytic framework. Compared to the G1 heap resizing mechanism, FlexHeap improves performance by an average of\n                    <jats:inline-formula>\n                      <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\" display=\"inline\">\n                        <mml:mrow>\n                          <mml:mn>30<\/mml:mn>\n                          <mml:mi>%<\/mml:mi>\n                        <\/mml:mrow>\n                      <\/mml:math>\n                    <\/jats:inline-formula>\n                    in Elasticsearch and by an average of\n                    <jats:inline-formula>\n                      <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\" display=\"inline\">\n                        <mml:mrow>\n                          <mml:mn>33<\/mml:mn>\n                          <mml:mi>%<\/mml:mi>\n                        <\/mml:mrow>\n                      <\/mml:math>\n                    <\/jats:inline-formula>\n                    in Spark. It outperforms Vertical G1, a state-of-the-art enhancement to the default G1 heap resizing mechanism, that returns unused memory to the OS eagerly, by\n                    <jats:inline-formula>\n                      <mml:math xmlns:mml=\"http:\/\/www.w3.org\/1998\/Math\/MathML\" display=\"inline\">\n                        <mml:mrow>\n                          <mml:mn>50<\/mml:mn>\n                          <mml:mi>%<\/mml:mi>\n                        <\/mml:mrow>\n                      <\/mml:math>\n                    <\/jats:inline-formula>\n                    on average in throughput, demonstrating that JVM heap resizing needs to consider I\/O overhead in search and analytics applications.\n                  <\/jats:p>","DOI":"10.1145\/3808247","type":"journal-article","created":{"date-parts":[[2026,6,8]],"date-time":"2026-06-08T18:04:09Z","timestamp":1780941849000},"page":"5-28","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":0,"title":["FlexHeap: Dynamic I\/O-Aware Heap Resizing for Managed Applications"],"prefix":"10.1145","volume":"10","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-4812-6775","authenticated-orcid":false,"given":"Iacovos G.","family":"Kolokasis","sequence":"first","affiliation":[{"name":"Foundation for Research and Technology Hellas, Institute of Computer Science, Heraklion, Greece"},{"name":"University of Crete, Department of Computer Science, Heraklion, Greece"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-2388-0517","authenticated-orcid":false,"given":"Shoaib","family":"Akram","sequence":"additional","affiliation":[{"name":"Australian National University, Canberra, Australia"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-5554-7538","authenticated-orcid":false,"given":"Foivos S.","family":"Zakkak","sequence":"additional","affiliation":[{"name":"Red Hat Ltd, Dublin, Ireland"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-2700-1260","authenticated-orcid":false,"given":"Polyvios","family":"Pratikakis","sequence":"additional","affiliation":[{"name":"Foundation for Research and Technology Hellas, Institute of Computer Science, Heraklion, Greece"},{"name":"University of Crete, Department of Computer Science, Heraklion, Greece"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-2975-4124","authenticated-orcid":false,"given":"Angelos","family":"Bilas","sequence":"additional","affiliation":[{"name":"Foundation for Research and Technology Hellas, Institute of Computer Science, Heraklion, Greece"},{"name":"University of Crete, Department of Computer Science, Heraklion, Greece"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2026,6,8]]},"reference":[{"key":"e_1_3_1_2_2","unstructured":"2024. Elasticsearch: The Official Distributed Search & Analytics Engine | Elastic. (Accessed: January 2025)."},{"key":"e_1_3_1_3_2","doi-asserted-by":"publisher","DOI":"10.1145\/98457.98753"},{"key":"e_1_3_1_4_2","unstructured":"Apache Cassandra. 2025. Hardware Choices | Apache Cassandra Documentation. https:\/\/cassandra.apache.org\/doc\/latest\/cassandra\/managing\/operating\/hardware.html. Accessed: April 2026."},{"key":"e_1_3_1_5_2","unstructured":"Apache Spark. 2025. Hardware Provisioning - Spark 4.0.1 Documentation. https:\/\/spark.apache.org\/docs\/latest\/hardware-provisioning.html. Accessed: April 2026."},{"key":"e_1_3_1_6_2","doi-asserted-by":"publisher","DOI":"10.1002\/spe.4380180902"},{"key":"e_1_3_1_7_2","doi-asserted-by":"publisher","DOI":"10.1145\/1152649.1152652"},{"key":"e_1_3_1_8_2","doi-asserted-by":"publisher","DOI":"10.1145\/3210563.3210567"},{"key":"e_1_3_1_9_2","doi-asserted-by":"publisher","DOI":"10.1145\/2754169.2754180"},{"key":"e_1_3_1_10_2","doi-asserted-by":"publisher","DOI":"10.1145\/233269.233354"},{"key":"e_1_3_1_11_2","unstructured":"Common Crawl. 2022. Common Crawl - Blog - January 2022 crawl archive now available. https:\/\/commoncrawl.org\/blog\/january-2022-crawl-archive-now-available. (Accessed: January 2025)."},{"key":"e_1_3_1_12_2","first-page":"51","volume-title":"22nd USENIX Conference on File and Storage Technologies (Santa Clara, CA, USA) (FAST \u201924)","author":"Dai Yifan","year":"2024","unstructured":"Yifan Dai, Jing Liu, Andrea Arpaci-Dusseau, and Remzi Arpaci-Dusseau. 2024. Symbiosis: The Art of Application and Kernel Cache Cooperation. In 22nd USENIX Conference on File and Storage Technologies (Santa Clara, CA, USA) (FAST \u201924). USENIX Association, Berkeley, CA, USA, 51\u201369. https:\/\/www.usenix.org\/conference\/fast24\/presentation\/dai"},{"key":"e_1_3_1_13_2","doi-asserted-by":"publisher","DOI":"10.1145\/1029873.1029879"},{"key":"e_1_3_1_14_2","unstructured":"Elastic Cloud. 2018. Sizing Hot-Warm Architectures for Logging and Metrics in the Elasticsearch Service on Elastic Cloud. https:\/\/www.elastic.co\/blog\/sizing-hot-warm-architectures-for-logging-and-metrics-in-the-elasticsearch-service-on-elastic-cloud. Accessed: April 2026."},{"key":"e_1_3_1_15_2","unstructured":"Elasticsearch. 2025. JVM Settings | Reference. https:\/\/www.elastic.co\/docs\/reference\/elasticsearch\/jvm-settings. Accessed: April 2026."},{"key":"e_1_3_1_16_2","unstructured":"ESRally. 2025. Rally 2.12.0 Documentation. https:\/\/esrally.readthedocs.io\/en\/stable\/. Accessed: April 2026."},{"key":"e_1_3_1_17_2","first-page":"395","volume-title":"16th USENIX Symposium on Operating Systems Design and Implementation (Carlsbad, CA, USA) (OSDI \u201922)","author":"Feng Guanyu","year":"2022","unstructured":"Guanyu Feng, Huanqi Cao, Xiaowei Zhu, Bowen Yu, Yuanwei Wang, Zixuan Ma, Shengqi Chen, and Wenguang Chen. 2022. TriCache: A User-Transparent Block Cache Enabling High-Performance Out-of-Core Processing with In-Memory Programs. In 16th USENIX Symposium on Operating Systems Design and Implementation (Carlsbad, CA, USA) (OSDI \u201922). USENIX Association, Berkeley, CA, USA, 395\u2013411. https:\/\/www.usenix.org\/conference\/osdi22\/presentation\/feng"},{"key":"e_1_3_1_18_2","doi-asserted-by":"publisher","DOI":"10.1109\/CGO.2007.20"},{"key":"e_1_3_1_19_2","doi-asserted-by":"publisher","DOI":"10.1145\/1993478.1993487"},{"key":"e_1_3_1_20_2","doi-asserted-by":"publisher","DOI":"10.1145\/2749469.2750420"},{"key":"e_1_3_1_21_2","doi-asserted-by":"publisher","DOI":"10.1201\/9781003276142"},{"key":"e_1_3_1_22_2","doi-asserted-by":"publisher","unstructured":"Marisa Kirisame Pranav Shenoy and Pavel Panchekha. 2022. Optimal heap limits for reducing browser memory use. Proc. ACM Program. Lang. 6 OOPSLA2 Article 160 (Oct. 2022) 21 pages. doi:10.1145\/3563323","DOI":"10.1145\/3563323"},{"key":"e_1_3_1_23_2","doi-asserted-by":"publisher","DOI":"10.1145\/3759426.3760981"},{"key":"e_1_3_1_24_2","doi-asserted-by":"publisher","DOI":"10.1145\/3582016.3582045"},{"key":"e_1_3_1_25_2","doi-asserted-by":"publisher","DOI":"10.1145\/3700593"},{"key":"e_1_3_1_26_2","volume-title":"Proceedings of the 12th USENIX Conference on Hot Topics in Storage and File Systems (Boston, MA, USA) (HotStorage \u201920)","author":"Kolokasis Iacovos G.","year":"2020","unstructured":"Iacovos G. Kolokasis, Anastasios Papagiannis, Polyvios Pratikakis, Angelos Bilas, and Foivos Zakkak. 2020. Say Goodbye to Off-Heap Caches! On-Heap Caches Using Memory-Mapped I\/O. In Proceedings of the 12th USENIX Conference on Hot Topics in Storage and File Systems (Boston, MA, USA) (HotStorage \u201920). USENIX Association, Berkeley, CA, USA, Article 4, 1 pages. https:\/\/www.usenix.org\/conference\/hotstorage20\/presentation\/kolokasis"},{"key":"e_1_3_1_27_2","doi-asserted-by":"publisher","DOI":"10.1145\/1773912.1773922"},{"key":"e_1_3_1_28_2","doi-asserted-by":"publisher","DOI":"10.1145\/3599691.3603408"},{"key":"e_1_3_1_29_2","unstructured":"Linux Kernel. [n. d.]. Documentation\/filesystems\/proc.rst. https:\/\/kernel.googlesource.com\/pub\/scm\/linux\/kernel\/git\/stable\/linux-stable\/+\/refs\/tags\/v5.8.4\/Documentation\/filesystems\/proc.rst. [Accessed: April 2026]."},{"key":"e_1_3_1_30_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-71593-9_27"},{"key":"e_1_3_1_31_2","volume-title":"Lucene in Action, Second Edition: Covers Apache Lucene 3.0","author":"McCandless Michael","year":"2010","unstructured":"Michael McCandless, Erik Hatcher, and Otis Gospodnetic. 2010. Lucene in Action, Second Edition: Covers Apache Lucene 3.0. Manning Publications Co., USA."},{"key":"e_1_3_1_32_2","doi-asserted-by":"publisher","unstructured":"Dat Nguyen and Khanh Nguyen. 2024. Polar: A Managed Runtime with Hotness-Segregated Heap for Far Memory. In Proceedings of the 15th ACM SIGOPS Asia-Pacific Workshop on Systems (Kyoto Japan) (APSys \u201924). Association for Computing Machinery New York NY USA 15\u201322. doi:10.1145\/3678015.3680490","DOI":"10.1145\/3678015.3680490"},{"key":"e_1_3_1_33_2","doi-asserted-by":"publisher","DOI":"10.1145\/3190508.3190537"},{"key":"e_1_3_1_34_2","unstructured":"OpenJDK. 2019. JEP 351: ZGC: Uncommit Unused Memory (Experimental). https:\/\/bugs.openjdk.org\/browse\/JDK-8220347. Accessed: April 2026."},{"key":"e_1_3_1_35_2","unstructured":"OpenJDK. 2023. JEP 346: Promptly Return Unused Committed Memory from G1. https:\/\/openjdk.org\/jeps\/346. Accessed: April 2026."},{"key":"e_1_3_1_36_2","unstructured":"Oracle. 2025. Garbage-First Garbage Collector Tuning. https:\/\/docs.oracle.com\/javase\/8\/docs\/technotes\/guides\/vm\/gctuning\/g1_gc_tuning.html. Accessed: April 2026."},{"key":"e_1_3_1_37_2","doi-asserted-by":"publisher","DOI":"10.1145\/3447786.3456242"},{"key":"e_1_3_1_38_2","first-page":"813","volume-title":"the 2020 USENIX Conference on Usenix Annual Technical Conference (USENIX ATC \u201920)","author":"Papagiannis Anastasios","year":"2020","unstructured":"Anastasios Papagiannis, Giorgos Xanthakis, Giorgos Saloustros, Manolis Marazakis, and Angelos Bilas. 2020. Optimizing Memory-Mapped I\/O for Fast Storage Devices. In Proceedings of the 2020 USENIX Conference on Usenix Annual Technical Conference (USENIX ATC \u201920). USENIX Association, Berkeley, CA, USA, 813\u2013824. https:\/\/www.usenix.org\/conference\/atc20\/presentation\/papagiannis"},{"key":"e_1_3_1_39_2","doi-asserted-by":"publisher","DOI":"10.1145\/3502181.3531466"},{"key":"e_1_3_1_40_2","unstructured":"Liz Rice. 2023. Learning eBPF. \" O\u2019Reilly Media Inc.\"."},{"issue":"6","key":"e_1_3_1_41_2","first-page":"14","article-title":"Adaptability driven by quality of execution in high level virtual machines for shared cloud environments","volume":"28","author":"Sim\u00e3o Jos\u00e9","year":"2013","unstructured":"Jos\u00e9 Sim\u00e3o and Lu\u00eds Veiga. 2013. Adaptability driven by quality of execution in high level virtual machines for shared cloud environments. International Journal of Computer Systems Science & Engineering 28, 6, Article 1 (Nov. 2013), 14 pages.","journal-title":"International Journal of Computer Systems Science & Engineering"},{"key":"e_1_3_1_42_2","doi-asserted-by":"publisher","DOI":"10.1145\/1806651.1806669"},{"issue":"2005","key":"e_1_3_1_43_2","first-page":"11","article-title":"Kernel korner: sleeping in the kernel","volume":"137","author":"Sovani Kedar","year":"2005","unstructured":"Kedar Sovani. 2005. Kernel korner: sleeping in the kernel. Linux fournal 2005, 137 (2005), 11.","journal-title":"Linux fournal 2005"},{"key":"e_1_3_1_44_2","doi-asserted-by":"publisher","DOI":"10.5555\/1182635.1164220"},{"key":"e_1_3_1_45_2","doi-asserted-by":"publisher","DOI":"10.1145\/1176617.1176654"},{"key":"e_1_3_1_46_2","doi-asserted-by":"publisher","DOI":"10.1145\/3617651.3622988"},{"key":"e_1_3_1_47_2","doi-asserted-by":"publisher","DOI":"10.1145\/1712605.1712636"},{"key":"e_1_3_1_48_2","doi-asserted-by":"publisher","DOI":"10.1145\/3342195.3387517"},{"key":"e_1_3_1_49_2","doi-asserted-by":"publisher","DOI":"10.1145\/1542431.1542433"},{"key":"e_1_3_1_50_2","first-page":"745","volume-title":"the 2017 USENIX Conference on Usenix Annual Technical Conference (Santa Clara, CA, USA) (USENIX ATC \u201917)","author":"Wang Jingjing","year":"2017","unstructured":"Jingjing Wang and Magdalena Balazinska. 2017. Elastic Memory Management for Cloud Data Analytics. In Proceedings of the 2017 USENIX Conference on Usenix Annual Technical Conference (Santa Clara, CA, USA) (USENIX ATC \u201917). USENIX Association, Berkeley, CA, USA, 745\u2013758. https:\/\/www.usenix.org\/conference\/atc17\/technical-sessions\/presentation\/wang"},{"key":"e_1_3_1_51_2","doi-asserted-by":"publisher","DOI":"10.1145\/3503222.3507731"},{"key":"e_1_3_1_52_2","doi-asserted-by":"publisher","DOI":"10.1145\/2464157.2466481"},{"key":"e_1_3_1_53_2","doi-asserted-by":"publisher","DOI":"10.1145\/1029873.1029881"},{"key":"e_1_3_1_54_2","first-page":"10","volume-title":"the 2nd USENIX Conference on Hot Topics in Cloud Computing (Boston, MA, USA) (HotCloud \u201910)","author":"Zaharia Matei","year":"2010","unstructured":"Matei Zaharia, Mosharaf Chowdhury, Michael J. Franklin, Scott Shenker, and Ion Stoica. 2010. Spark: Cluster Computing with Working Sets. In Proceedings of the 2nd USENIX Conference on Hot Topics in Cloud Computing (Boston, MA, USA) (HotCloud \u201910). USENIX Association, Berkeley, CA, USA, Article 10, 10 pages. https:\/\/www.usenix.org\/conference\/hotcloud-10\/spark-cluster-computing-working-sets"},{"key":"e_1_3_1_55_2","doi-asserted-by":"publisher","DOI":"10.1145\/1133956.1133979"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3808247","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,9,22]],"date-time":"2026-09-22T10:41:52Z","timestamp":1790073712000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3808247"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,6,8]]},"references-count":54,"journal-issue":{"issue":"PLDI","published-print":{"date-parts":[[2026,6,8]]}},"alternative-id":["10.1145\/3808247"],"URL":"https:\/\/doi.org\/10.1145\/3808247","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,6,8]]},"assertion":[{"value":"2025-10-10","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-02-17","order":2,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2026-06-08","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}