Research and Application of Self-Optimized Database Connection Pool Technology Base on J2EE

Author
MaHaiYan
Advisor
PengYuXing
School
National University of Defense Science and Technology
Major
Software Engineering
Classification
TP311.13 Database theory and systems
Degree
Master's thesis
Year
2005
Downloads
182
Citations
3

Request the full text

Abstract

The development in information society makes people depend on network more and more and, large numbers of application system based on network emerge continually. With the extension of network the quantity of information supplied by webs and quantity of user visiting and complexity of program in computer software are increasing greatly. How to make the limited computer system resources service further users and how to ensure the response velocity and service quality for users is becoming the all-important questions to software developers. These valuable system resources, such as memory, line and database connection, are important to the usage efficiency of internet applications in time and space, in which the usability of resources is interrelated to the performance of client application programs and the degree of client satisfaction. So, the system resource management is an important question for developing N-tier structure application programs with scalable and high parallel degree and is one of hotspot problem in software engineering region currently.In the first part, the background, meaning and status in quo concerning the research are introduced, and the technique and principle of JDBC access database based on J2EE are discussed. The shortage and limitation in traditional database accessing mode confine with the scalability and exuberance for application system, in which the treatment for this problem is to make use of the technique of connection pool presently. However, the farther analysis in the paper indicates that the strategy of parameter configuration in current connection pool technique is static state with 1-order enactment while initializes connection pool without Self-Optimized adjustment according as the variety of application demand, the operation results of high use frequency database are not cached and users visit the same database independently. The multi-propose connection strategy cannot control the database operation for the same transaction and cannot ensure the ACID attribute, etc. In according with the defections mentioned above, the service technique of Self-Optimized connection pool is presented in this paper and the composing structure for Self-Optimized connection pool is designed, then, some strategy in dynamic parameters adjustment, transaction management and data cache for connection pool is improved. The comparative experimental results show that the Self-Optimized connection pool is superior to the current connection pool both in reducing the resource possession of computer system and in enhancing visiting speed for large-scale application system.A MIRMS system is designed in Chapter 5 in the paper using the

Table of contents

Summary 10-11 ABSTRACT 11-13 first chapter 13-21 1.1 subject background 13-14 < br /> 1.2 research significance 14-15 1.3 connection pool Technical Research 15-19 1.3.1 database connection pool technology development 15 -17 1.3.2 connection pool technology Research 17-19 1.4 to complete the work 19 1.5 organizational structure of the thesis 19 - 21 J2EE framework, JDBC-related technical analysis the 21-30 2.1 J2EE Technology Overview 21-25 the 2.1.1 enterprise application architecture development 21 2.1.2 J2EE application architecture the 21-23 Web container components 2.1.3 23 2.1.4 an EJB container components 23-24 2.1.5 J2EE API 24-25 2.2 JDBC mechanism to access the database 25-26 2.2.1 JDBC to access the database Mechanism 25-26 2.2.2 Comparison and Selection 26 2.3 load the database drive and open the connection 26-27 2.3.1 Register JDBC driver 26-27 2.3.2 to establish a connection 27 2.4 JDBC-based database access 27-28 2.5 database connection the pool technology 28-29 2.6 Chapter Summary 29-30 self-optimizing database connection pooling services technology research 30-47 3.1 database connection pool technology principle the 30-35 of 3.1.1 database connection pool 30-31 3.1.2 the mainstream database connection pool configuration policy analysis 31 - 33 3.1.3 database connection pool implementations 33-34 3.1.4 connection pool the scheduling management strategy analysis 34-35 3.2 existing defects and shortcomings of the JDBC connection pool technology 35-37 3.3 connection pooling service self-optimization technology 37-38 3.3.1 Self-optimizing the connection pooling design thinking 37 3.3.2 self-optimizing the structure of the connection pool 37-38 3.3.3 self-optimizing the characteristics of the connection pool service 38 3.4 self-optimizing connection pool parameters the adjustment strategy 38-39 3.5 connection pool dynamically adjusted 39-41 3.5.1 connection pool dynamically adjust the conditions 39-40 <br / > 3.5.2 set the connection pool dynamically adjust the monitor thread 40-41 3.6 transaction management strategy 41-43 3.6.1 Transaction Processing 41-42 3.6.2 connection abnormal control 42-43 3.7 data buffer management strategy 43 3.8 self-optimizing existing connection pool connection pool technology experimental 43-45 3.8.1 self-optimizing with the existing connection pool overall system response time test 43-44 3.8.2 self-optimizing existing connection pool resource consumption test 44-45 3.8.3 test results 45 3.9 Chapter Summary 45-47 Chapter self-optimizing connection pool the key technology the 47-58 4.1 the XML configuration table using JDOM parse dynamic connection pool 47-49 4.1.1 dynamic connection pool XML configuration table 47-48 4.1.2 parse XML configuration table 48-49 4.2 self-optimize the connection pool technology object class diagram 49-50 4.3 Dynamic Adjust the realization of the strategy 50-53 4.3.1 connection multiplexing strategy to achieve 50-51 4.3.2 write log 51-52 4.3.3 Search algorithm 52-53 4.3.4 connection pool adjustment to achieve self-optimizing 53 4.4 Transaction key technologies and achieve 53 -55 4.4.1 transaction isolation level the 53-54 4.4.2 rollback drive 54 4.4.3 self-optimizing the connection pool transaction method 54-55 4.5 data buffer management to achieve 55-56 4.6 Chapter Summary 56-58 Chapter based on self optimize the connection pool MIRMS system design and application 58-70 5.1 system architecture the 58-60 5.1.1 MIRMS system The Introduction 58 <br / > 5.1.2 MIRMS system architecture 58-60 5.2 system environment with development tools nbsp the; the 60-61 5.3 the main function module 61-63 < br /> 5.4 self-optimizing connection pool member the 63-68 5.4.1 RMI server the the 63-67 5.4.2 RMI client (the Serlvet) application 67-68 5.5 since the effect of the application of optimized connection pool technology 68-69 5.6 Chapter Summary 69-70 Chapter Conclusion 70-72 § 6.1 summarizes 70 § 6.2 for further research direction 70-72 thank 72-73 Reference 73-75 Master during Papers 75