Skip to main content

Estimating the Impact of Code Additions on Garbage Collection Overhead

  • Conference paper
  • First Online:
Computer Performance Engineering (EPEW 2015)

Part of the book series: Lecture Notes in Computer Science ((LNPSE,volume 9272))

Included in the following conference series:

Abstract

In managed memory environments, code changes influence performance both through time spent executing the code and time spent collecting garbage generated by the code. This complicates decision making when considering performance impact of code changes—while the impact on execution time is usually easy to assess in isolation, the impact on garbage collection time depends on the memory allocation behavior of the code surrounding the changes. In our paper, we describe a method to estimate the impact of code changes with additional allocations on garbage collection time, which can be applied, e.g., when assessing the overall performance impact of alternative changes. The method is demonstrated on experiments with the HotSpot virtual machine.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Becker, S., Koziolek, H., Reussner, R.: The Palladio component model for model-driven performance prediction. J. Syst. Softw 82(1) (2009)

    Google Scholar 

  2. Blackburn, S.M., Cheng, P., McKinley, K.S.: Myths and realities: The performance impact of garbage collection. Perform. Eval. Rev. 32(1), 25–36 (2004). http://doi.acm.org/10.1145/1012888.1005693

    Article  Google Scholar 

  3. Blackburn, S.M., et al.: The DaCapo benchmarks: Java benchmarking development and analysis. In: OOPSLA, pp. 169–190 (2006). http://doi.acm.org/10.1145/1167473.1167488

  4. Hertz, M., Berger, E.D.: Quantifying the performance of garbage collection vs. explicit memory management. In: OOPSLA, pp. 313–326 (2005). http://doi.acm.org/10.1145/1094811.1094836

  5. Hertz, M., Blackburn, S.M., Moss, J.E.B., et al.: Generating object lifetime traces with Merlin. ACM Trans. Program. Lang. Syst. 28(3), 476–516 (2006). http://doi.acm.org/10.1145/1133651.1133654

    Article  Google Scholar 

  6. Jones, R.E., Ryder, C.: A study of Java object demographics. In: ISMM, pp. 121–130 (2008). http://doi.acm.org/10.1145/1375634.1375652

  7. Li, P., Ding, C., Luo, H.: Modeling heap data growth using average liveness. In: ISMM, pp. 71–82 (2014). http://doi.acm.org/10.1145/2602988.2602997

  8. Libič, P., Bulej, L., Horký,V., Tůma, P.: On the limits of modeling generational garbage collector performance. In: ICPE, pp. 15–26 (2014). http://doi.acm.org/10.1145/2568088.2568097

  9. Libič, P., Tůma, P., Bulej, L.: Issues in performance modeling of applications with garbage collection. In: QUASOSS, pp. 3–10 (2009). http://doi.acm.org/10.1145/1596473.1596477

  10. Ricci, N.P., Guyer, S.Z., Moss, J.E.B.: Elephant tracks: portable production of complete and precise GC traces. In: ISMM, pp. 109–118 (2013)

    Google Scholar 

  11. Sun Microsystems Inc: Memory management in the Java HotSpot virtual machine (2006). http://www.oracle.com/technetwork/java/javase/memorymanagement-whitepaper-150215.pdf

  12. Vengerov, D.: Modeling, analysis and throughput optimization of a generational garbage collector. In: ISMM, pp. 1–9 (2009). http://doi.acm.org/10.1145/1542431.1542433

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Peter Libič .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Springer International Publishing Switzerland

About this paper

Cite this paper

Libič, P., Bulej, L., Horký, V., Tůma, . (2015). Estimating the Impact of Code Additions on Garbage Collection Overhead. In: Beltrán, M., Knottenbelt, W., Bradley, J. (eds) Computer Performance Engineering. EPEW 2015. Lecture Notes in Computer Science(), vol 9272. Springer, Cham. https://doi.org/10.1007/978-3-319-23267-6_9

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-23267-6_9

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-23266-9

  • Online ISBN: 978-3-319-23267-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics