{"title":"使用服务验尸器工具诊断OSGi平台中的过期引用","authors":"Kiev Gama, D. Donsez","doi":"10.1145/1462735.1462749","DOIUrl":null,"url":null,"abstract":"The OSGi Service Platform is becoming the de facto middleware for the deployment of dynamic modular Java-based applications. It gives the possibility to install, to activate, to update and to uninstall application modules without needing to restart the host Java Virtual Machine. However, modules run on the memory space, and it is not possible to ensure that objects from unavailable (e.g. uninstalled) modules will no longer be referenced, since it depends on developers to correctly provide code that will handle the corresponding OSGi events which inform the departure of a module. Such errors, resulted from the mishandling of the dynamic arrival and departure of modules, are a hard to detect problem described in the OSGi specification as Stale References. It may lead to inconsistencies in application's behavior, state and memory. So far there were no tools addressing the diagnostics of this issue. In this demo we present the live utilization of our experimental tool, Service Coroner, which helps OSGi application developers and administrators in the diagnosis of stale references. Our presentation focus on the diagnosis of actual OSGi based applications that present the occurrence of stale references upon dynamic updates of modules.","PeriodicalId":340887,"journal":{"name":"Companion '08","volume":"113 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2008-12-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"5","resultStr":"{\"title\":\"Using the service coroner tool for diagnosing stale references in the OSGi platform\",\"authors\":\"Kiev Gama, D. Donsez\",\"doi\":\"10.1145/1462735.1462749\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"The OSGi Service Platform is becoming the de facto middleware for the deployment of dynamic modular Java-based applications. It gives the possibility to install, to activate, to update and to uninstall application modules without needing to restart the host Java Virtual Machine. However, modules run on the memory space, and it is not possible to ensure that objects from unavailable (e.g. uninstalled) modules will no longer be referenced, since it depends on developers to correctly provide code that will handle the corresponding OSGi events which inform the departure of a module. Such errors, resulted from the mishandling of the dynamic arrival and departure of modules, are a hard to detect problem described in the OSGi specification as Stale References. It may lead to inconsistencies in application's behavior, state and memory. So far there were no tools addressing the diagnostics of this issue. In this demo we present the live utilization of our experimental tool, Service Coroner, which helps OSGi application developers and administrators in the diagnosis of stale references. Our presentation focus on the diagnosis of actual OSGi based applications that present the occurrence of stale references upon dynamic updates of modules.\",\"PeriodicalId\":340887,\"journal\":{\"name\":\"Companion '08\",\"volume\":\"113 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2008-12-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"5\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Companion '08\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1145/1462735.1462749\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Companion '08","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/1462735.1462749","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
Using the service coroner tool for diagnosing stale references in the OSGi platform
The OSGi Service Platform is becoming the de facto middleware for the deployment of dynamic modular Java-based applications. It gives the possibility to install, to activate, to update and to uninstall application modules without needing to restart the host Java Virtual Machine. However, modules run on the memory space, and it is not possible to ensure that objects from unavailable (e.g. uninstalled) modules will no longer be referenced, since it depends on developers to correctly provide code that will handle the corresponding OSGi events which inform the departure of a module. Such errors, resulted from the mishandling of the dynamic arrival and departure of modules, are a hard to detect problem described in the OSGi specification as Stale References. It may lead to inconsistencies in application's behavior, state and memory. So far there were no tools addressing the diagnostics of this issue. In this demo we present the live utilization of our experimental tool, Service Coroner, which helps OSGi application developers and administrators in the diagnosis of stale references. Our presentation focus on the diagnosis of actual OSGi based applications that present the occurrence of stale references upon dynamic updates of modules.