期刊文献+

面向OSGi框架的软件构件监控方法的设计与实现 被引量:5

DESIGN AND IMPLEMENTATION OF AN OSGi-ORIENTED SOFTWARE COMPONENT MONITORING APPROACH
下载PDF
导出
摘要 面向OSGi框架的构件化软件开发方法被广泛应用。现有的OSGi构件监控方法仅能够监控动态服务调用所造成的资源消耗,未能考虑静态包引用的情况。针对该问题,提出一种面向方法的OSGi构件监控方法。该方法首先对代码进行分析,建立方法与构件间的映射关系,在方法前后插入监控逻辑以标记构件的边界;而后,跟踪线程的跨边界执行,将线程在方法中占用的CPU和内存计入对应的构件;同时,通过记录线程在不同构件间的转移,监测构件间的动态调用。实验结果表明,该方法能够以较低的开销准确监控OSGi中构件的CPU和内存资源消耗,以及构件间的交互行为。 OSGi framework-oriented componentised software development method is in wide use. Existing OSGi components monitoring methods can only monitor resources consumption caused by dynamic service call,but regardless the static packages importing situation. To address this issue,we propose a method-oriented OSGi component monitoring approach. First of all,this approach sets up the mapping relationship between methods and components by analysing the code,and inserts monitoring logic before and after the methods to mark the boundary of components. After that,the approach tracks the cross-border execution of each thread,adds the CPU time consumed and the memory occupied in methods by the threads to corresponding components. Meanwhile,by recording each thread transfer between components, it monitors the dynamic call between the components. Experimental results demonstrate that this approach is able to accurately monitor CPU and memory consumption of OSGi components and the interaction between the components with lower overhead.
出处 《计算机应用与软件》 CSCD 北大核心 2014年第4期1-6,58,共7页 Computer Applications and Software
基金 国家自然科学基金项目(61173004) 国家科技支撑项目(2011BAH11B04 2012BAH09F01)
关键词 OSGI 软件构件 资源监控 线程跟踪 OSGi Software component Resource monitoring Thread tracking
  • 相关文献

参考文献10

  • 1Mohammad M,Alagar V. A component-based development process for trustworthy systems [ J ]. Journal of Software : Evolution and Process, 2012,24(7) :815 -835.
  • 2Miettinen T. Resource monitoring and visualization of OSGi-based software components[ M]. V'IT Technical Research Centre of Finland ,2008.
  • 3Moisan S. Intelligent monitoring of software components [ C ]//Realizing Artificial Intelligence Synergies in Software Engineering,First Interna- tional Workshop on. IEEE ,2012 : 17 - 21.
  • 4Yamakasi I. Monitoring and managing computer resource usage on OSC-i frameworks [ C ]//OSGi Alliance Developer Forum,2005,10.
  • 5Miettinen T,Pakkala D, Hongisto M. A method for the resource monito- ring of osgi-based software components [ C ]//Software Engineering and Advanced Applications, 2008. 34th Euromicro Conference. IEEE, 2008 : 100 - 107.
  • 6Wang T, Zhou X, Wei J, et al. Component Monitoring of OSGi-Based Software[ C]//e-Business Engineering,7th International Conference on. IEEE,2010:250 - 255.
  • 7Kelly 0' Hair. A Short java crw demo Usei" Guide [ EB/OL]. (2008 - 02 - 29 ). 12013 - 04 - 141. https ://blogs. oracle, com/kto/entry! a_short java_crw_demo.
  • 8MrAnderson (Intel). Is' Collect Highly Accurate CPU Time' Option Required? [ E B/OL ]. ( 2011 - 04 - 04 ). [ 2013 - 04 - 14 ]. http :// software, intel, corn/en - us/articles/is - collect - highly - accurate - cpu - time - option - required.
  • 9: Rhett Gong. GetThreadTimes [ EB/OL]. (2004 - 10 - 29). [ 2013 - 04 -14 ]. http://www, tech -archive. net/Archive/Development/mi- crosoft, public, win32, programmer, kernel/2004 - 10/0689. html.
  • 10TPC-W. Transaction Processing Performance Council[ EB/OL]. (2005 -04 -28). [2013 -04 - 10]. http://www, tpc. org/tpcw/.

同被引文献48

引证文献5

二级引证文献13

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部