Shintaro Hamanaka, S. Kurihara, S. Fukuda, R. Mori, M. Oguchi, Saneyasu Yamaguchi
{"title":"Object lifetime trend of modern Android applications for GC performance improvement","authors":"Shintaro Hamanaka, S. Kurihara, S. Fukuda, R. Mori, M. Oguchi, Saneyasu Yamaguchi","doi":"10.1145/3022227.3022311","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 explore trend of object lifetimes of modern Android application in order to improve estimation of lifetime of ART GC. For this purpose, we have constructed our application behavior monitoring system, which is called ART monitor. This is implemented by modifying Android and enable observation of creations and destruction of objects in ART. We have investigated the relation among object lifetime, object sizes, and object names in recent Android applications which are popular in Google Play Store. We than found that small object probably dies with short lifetime and objects of some classes always survive long time. Based on these findings, we discuss a method for improving ART GC performance.","PeriodicalId":124905,"journal":{"name":"Proceedings of the 11th International Conference on Ubiquitous Information Management and Communication","volume":"16 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2017-01-05","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"3","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 11th International Conference on Ubiquitous Information Management and Communication","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3022227.3022311","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 3
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 explore trend of object lifetimes of modern Android application in order to improve estimation of lifetime of ART GC. For this purpose, we have constructed our application behavior monitoring system, which is called ART monitor. This is implemented by modifying Android and enable observation of creations and destruction of objects in ART. We have investigated the relation among object lifetime, object sizes, and object names in recent Android applications which are popular in Google Play Store. We than found that small object probably dies with short lifetime and objects of some classes always survive long time. Based on these findings, we discuss a method for improving ART GC performance.
Android操作系统已经成为最受欢迎的智能手机平台之一。针对Android Runtime (ART)开发了大量应用程序。垃圾收集(GC)是基于java的应用程序的ART的基本功能。GC挂起所有应用程序线程,称为Stop the World (STW),并牺牲应用程序的性能。为了减少检查堆的暂停,提出了分代GC。它将对象分成两组,一组是可能在下一次GC中死亡的对象,另一组是可能在下一次GC中死亡的对象。然后,它试图减少搜索空间和检查时间。使用这种GC,对对象生命周期的准确估计非常重要。本文探讨了现代Android应用中对象生命周期的变化趋势,以期改进ART GC的生命周期估计。为此,我们构建了我们的应用行为监控系统,称为ART监控。这是通过修改Android来实现的,并且可以在ART中观察对象的创建和破坏。我们研究了最近在Google Play Store中流行的Android应用程序中对象生命周期、对象大小和对象名称之间的关系。我们还发现,小对象的生命周期很可能很短,而某些类的对象的生命周期却很长。基于这些发现,我们讨论了一种提高ART GC性能的方法。