・ 206・
计算机应用研究
2005 年
基于 XM L 的自优化数据库连接池的设计与实现
*
1 1
2
( 1 . 北京科技大学信息工程学院, 北京 100083; 2. 教育部信息中心网络处, 北京 100816)
摘
要: 提出一种自优化数据库连接池的设计方式。它可根据应用规模动态地调整设置参数, 进而选取对应的
管理策略, 其中策略可以存储在连接池的配置文件中或作为知识库保存。在对连接资源进行有效管理的同时,
可以对连接池的最大连接数与最大等待时间进行动态调整, 并在每次初始化时将优化的配置参数读入, 实现连
接池的自优化, 提高数据库运行效率。
关键词: XML; 自优化; 数据库连接池; 资源池; 连接复用
中图法分类号: TP311. 11
文献标识码: A
文章编号: 1001 - 3695( 2005) 07- 0206- 04
Design and Implementation of Self-optimized Database
Connection Pool Based on XML
1 1 2
( 1. School of Information Engineering, Beijing University of Science & Technology, Beijing 100083, China; 2 . Network Department, Informa-
tion Center in Educational Ministry, Beijing 100816, China)
Abstract: A new design approach on database connection pool, self-optimized connection pool, is proposed in the paper. By
using this method, connection pool can dynamic adjust configuration parameters and choose accordingly management strate-
gies, which can be stored in configuration file or repository. Furthermore, this paper has implemented a case about database
connection pool, which is of the function of adjusting preferences. The case of self-optimized connection pool improves greatly
the performance for connection pool as a result of loading the optimized configuration parameters when every initializing the
pool.
Key words: XML; Self-Optimized; Database Connection Pool;
基于XML 的自优化数据库连接池的设计与实现 来自淘豆网m.daumloan.com转载请标明出处.