期刊文献+

空气质量实时监测系统的内存泄漏 被引量:1

Memory leak in air quality real-time monitoring system
下载PDF
导出
摘要 空气质量实时监测系统要求每5 min从数据库中取出监测数据,并将数据动态显示在Google地图标记的信息窗口中.直接使用封装谷歌地图的控件及在脚本中定义局部谷歌地图实例对象,都会发生内存泄漏,原因是脚本语言没有提供回收对象实例的方法,所有局部对象实例的回收都由系统内置的垃圾回收机制自动完成.而垃圾回收机制何时运行,完全由操作系统决定,程序无法控制.提出将地图对象及相关的标记、信息窗体对象全局化定义,使得相关对象只定义及实例化一次,避免实例对象的重复定义,解决了系统内存的泄漏问题. Air quality monitoring system gets data from database every 5 minutes and displays data in the information window of Google map marker dynamically. A memory leak occurs directly using map controls and defining local Google map object instances in Javascript, because Javascript doesn' t provide the method to recycle object instances. All local object instances are recycled by garbage collection mechanism within operation system. But when and how the garbage collection mechanism to run is decided entirely by operation system, programmer can't control. We propose that map objects and tags, information windows are defined only once as global object to avoid duplicate definition of instance objects, so as to solve the memory leak problems.
作者 刘黎志 刘君
出处 《武汉工程大学学报》 CAS 2012年第6期74-78,共5页 Journal of Wuhan Institute of Technology
基金 武汉工程大学智能机器人湖北省重点实验室开放基金(HBIR201006)
关键词 内存泄漏 谷歌地图 异步脚本及标记语言 实时监测 memory leak goggle map asynchronous javascript and XML real- time monitoring
  • 相关文献

参考文献5

  • 1Velio Ivanov. Google Map Control for ASP. NET [ EB/ OL]. http ://googlemap. codeplex, com. 2011 - 02 - 16.
  • 2黄瑶.C/C++程序内存泄漏检测和分析技术的研究与实现[D].北京:北京航空航天大学软件学院.2004.
  • 3胡燕,龚育昌,孙伟峰,赵振西.一种混合式内存泄漏静态检测方法[J].小型微型计算机系统,2008,29(10):1935-1939. 被引量:3
  • 4Google Code. Google Maps JavaScript API V3 [ EB/ OL]. http ://code. google, com/intl/zh - CN/zh - CN/ apis/maps/documentation/javascript/. 2010 -06 - 15.
  • 5Regehr J, Cooprider N, Archer W. Efficient type and memory safety for tiny embedded systems [ C ]//In Proceedings of the PLOS 2006 Workshop on Linguistic Support for Modem Operating Systems. California: San Jose,2006:64 - 68.

二级参考文献10

  • 1高海昌,冯博琴,何杭军,朱利.Linux平台下基于源代码插装的动态内存检测[J].小型微型计算机系统,2006,27(9):1647-1651. 被引量:6
  • 2Maria Jump, Kathryn S McKinley. Cork : dynamic memory leak detection for java[R]. Technical Report TR-06-07, Department of Computer Science, The University of Texas at Austin, Austin, TX, 2006.
  • 3Nicholas Nethercote, Julian Seward. Valgrind : a framework for heavyweight dynamic binary instrumentation[C]. Proceedings of PLDI 2007, San Diego, California, USA, June 2007.
  • 4Huang Yao. The research and implementation of memory leak detection and analysis of C/C++ program[D]. Software Engineering Institute of Beijing University of Aeronautics and Astronautics, 2004.
  • 5David L Heine, Monica SLam. Static detection of leaks in polymorphic containers [C]. Proceeding of the 28th international conference on Software engineering, May 20-28, 2006, Shanghai, China.
  • 6Heine D L. Static memory leak detection[D]. Department of Electrical Engineering, Stanford University, December 2004.
  • 7Regehr J, Cooprider N, Archer W, et al. Efficient type and memory safety for tiny embedded systems[C]. In Proceedings of the PLOS 2006 Workshop on Linguistic Support for Modern Operating Systems, San Jose, California, October 2006.
  • 8Barker C. Static error checking of C applications ported from UNIX to WIN32 systems using LCLint[R]. Senior Thesis, Dept. Computer Science, University of Virginia, Charlottesville, 2001.
  • 9Henzinger T A, Jhala R, Majumdar R, et al. Extreme model checking [C]. In: International Symposium on Verification: Theory and Practice, LNCS 2772, Springer, 2003, 332-358.
  • 10Yang B, Bryant R E, O'Hallaron D R, et al. A performance study of BDD-based model checking[C]. In Proceedings of the Formal Methods on Computer-Aided Design, November 1998, 255-289.

共引文献2

同被引文献13

引证文献1

二级引证文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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