摘要
网关控制协议GCP模块业务逻辑复杂,异常情况众多,在已分配的资源正常释放情况下,存在资源泄漏的严重问题。为了解决资源泄漏的技术难题,提出了一个防资源泄漏方案。此方案通过建立资源池来统一管理各种资源,找出各种资源之间的依赖关系,通过发现并释放不符合依赖关系的资源,来保证GCP模块不出现资源泄漏的情况。最后通过在真实环境中对防资源泄漏方案的测试,验证了该方案在防资源泄漏方面的突出改进。
The service logic of GCP module is complicated,and there are many exceptional situations which can be serious problems of resource leakage To solve this technical problems,this paper offers an optimized strategy for preventing resource leakage.This strategy aims to find out interdependencies between various resources by using a memory pool to manage all the resources.By finding out the resources which mismatch the dependency relation,the GCP module can be prevented from leaking resource.This strategy has been proved to be of great improvement in preventing resource leakage by testing it in real circumstances.
出处
《电子技术(上海)》
2008年第8期61-63,共3页
Electronic Technology
关键词
GCP模块
防止
资源泄漏
资源池
依赖关系
GCP module
preventm
resource leakage
resource pool
dependence relationship