现代计算机(专业版)
現代計算機(專業版)
현대계산궤(전업판)
MODERN COMPUTER
2015年
2期
65-69
,共5页
心跳包%数据库%连接池
心跳包%數據庫%連接池
심도포%수거고%련접지
Heartbeat%Database%Connection Pool
在基于B/S或C/S架构的多层应用系统设计中,往往存在大量的TCP/IP客户连接和数据库信息存取操作。决定系统性能优劣的两个重要因素,一是如何快速建立数据库连接;二是如何避免出现死连接。在对数据库连接池技术和死连接产生原因进行分析的基础上,设计并实现带心跳功能的连接池。
在基于B/S或C/S架構的多層應用繫統設計中,往往存在大量的TCP/IP客戶連接和數據庫信息存取操作。決定繫統性能優劣的兩箇重要因素,一是如何快速建立數據庫連接;二是如何避免齣現死連接。在對數據庫連接池技術和死連接產生原因進行分析的基礎上,設計併實現帶心跳功能的連接池。
재기우B/S혹C/S가구적다층응용계통설계중,왕왕존재대량적TCP/IP객호련접화수거고신식존취조작。결정계통성능우렬적량개중요인소,일시여하쾌속건립수거고련접;이시여하피면출현사련접。재대수거고련접지기술화사련접산생원인진행분석적기출상,설계병실현대심도공능적련접지。
A large number of TCP/IP client connections and access operations of database information often exist in the design of multi-application system based on B/S or C/S architecture. The two most important factors that determine the system performance is how to establish the database connection rapidly, and the other one is how to avoid the appearance of dead joints. Designs and realizes a connection pool with heartbeat function, according to the analysis of the connection pool technology and the cause of the dead joints.