Shintaro Hamanaka, S. Kurihara, S. Fukuda, M. Oguchi, Saneyasu Yamaguchi
{"title":"A Study on Object Lifetime in GC of Android Applications","authors":"Shintaro Hamanaka, S. Kurihara, S. Fukuda, M. Oguchi, Saneyasu Yamaguchi","doi":"10.1109/CANDAR.2016.0126","DOIUrl":null,"url":null,"abstract":"Android operating system has become one of the most popular smartphone platforms. A large number of applications are developed for Android Runtime (ART). Garbage Collection (GC) is an essential function of ART for Java-based applications. GC suspends all the application threads, called Stop The World (STW), and sacrifices application's performance. For reducing pauses to check heap, generational GC was proposed. It separates objects into two groups, the objects which probably die in the next GC and the others. Then, it tries to reduce search space and time to check. With this GC, accurate estimation of object lifetime is important. In this paper, we investigate objects' lifetime trend in modern Java-based applications of Android, and discuss a method for improving GC based on this trend. First, we introduce our monitoring system for object creations and collections in ART. Second, we present the monitoring results of recent popular Android applications and reveal the relations between lifetimes and object sizes.","PeriodicalId":322499,"journal":{"name":"2016 Fourth International Symposium on Computing and Networking (CANDAR)","volume":"36 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2016-11-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"5","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2016 Fourth International Symposium on Computing and Networking (CANDAR)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/CANDAR.2016.0126","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 5
Abstract
Android operating system has become one of the most popular smartphone platforms. A large number of applications are developed for Android Runtime (ART). Garbage Collection (GC) is an essential function of ART for Java-based applications. GC suspends all the application threads, called Stop The World (STW), and sacrifices application's performance. For reducing pauses to check heap, generational GC was proposed. It separates objects into two groups, the objects which probably die in the next GC and the others. Then, it tries to reduce search space and time to check. With this GC, accurate estimation of object lifetime is important. In this paper, we investigate objects' lifetime trend in modern Java-based applications of Android, and discuss a method for improving GC based on this trend. First, we introduce our monitoring system for object creations and collections in ART. Second, we present the monitoring results of recent popular Android applications and reveal the relations between lifetimes and object sizes.
Android操作系统已经成为最受欢迎的智能手机平台之一。针对Android Runtime (ART)开发了大量应用程序。垃圾收集(GC)是基于java的应用程序的ART的基本功能。GC挂起所有应用程序线程,称为Stop the World (STW),并牺牲应用程序的性能。为了减少检查堆的暂停,提出了分代GC。它将对象分成两组,一组是可能在下一次GC中死亡的对象,另一组是可能在下一次GC中死亡的对象。然后,它试图减少搜索空间和检查时间。使用这种GC,对对象生命周期的准确估计非常重要。本文研究了现代基于java的Android应用程序中对象的生命周期趋势,并讨论了一种基于此趋势的改进GC的方法。首先,我们介绍了我们的艺术品创作和收藏监控系统。其次,我们介绍了最近流行的Android应用程序的监控结果,并揭示了生命周期和对象大小之间的关系。