The Research of Database Connection Pool Based on Java

Author
JiangSha
Advisor
LvFeng
School
Wuhan University of Technology
Major
Communication and Information System
Classification
TP311.13 Database theory and systems
Degree
Master's thesis
Year
2006
Downloads
407
Citations
6

Request the full text

Abstract

Database-related Web-based large-scale commercial applications, access to a large amount, and every visitor to access the data must obtain a database connection to the database, which makes the database connection become a scarce resources, it repeated use. In order to reuse the database connection, you need to use the object pool mode in the mode of the shared pool to use the database connection pool management and reuse database connections. This article focuses on an existing object pool Commons-Pool and database connection pool Commons-DBCP research and analysis: 1. Use Commons-Pool focus to the basic method of the object pool, as well as inside it with the object pool closely related interface / classes and methods. Properties and parameters related to the configuration of the object pool. Also analyzed the commons-Pool system architecture, the use of UML diagrams to visually describe the link between the key interface / class. Analysis Commons-DBCP, focusing on analysis of pooled database connection and connection pooling related to the management of key classes and methods. Commons-DBCP commons-pool, it also describes the link between the both of them. To display the database connection pool database-related Web-based large-scale commercial applications, database connection pool can improve the efficiency of database connection, you need to conduct performance testing. This article describes the basic methods of performance testing, designed and implemented a performance test program. Performance test results show that the performance of the application using the connection pool than the performance of the application does not use the connection pool has been greatly improved. Commons-DBCP, for example for the shortcomings of the traditional database connection pool capacity can not be changed during operation, optimization function. Commons-DBCP provides a graphical user interface that enables users to timely adjust the basis of the actual use of the capacity of the connection pool through the interface. The optimization procedure based on the MVC design pattern, the connection pool operation program as a model, and will interact with the user program as a view of the pool size set, the user passes the request to the model treatment program as a controller. The optimization process is complete, functional testing, verify the optimization of Commons-DBCP indeed reached the timely adjustment of the pool capacity optimization goals.

Table of contents

Chapter 1 Introduction 8-11 1.1 research background and significance 8 1.2 research status 8-9 <br / > 1.3 content of this study 9-11 Chapter 2 studies related knowledge 11-21 2.1 object pooling and connection pooling 11 -13 2.2 object-oriented programming 13-14 2.2 Java programming language features 14-15 2.2.1 architecture neutrality 14 2.2.2 Robustness 14-15 2.2.3 Multithreaded 15 2. 2.4 Distributed 15 2.3 to access the database through a Java 15-20 2.3.1 JDBC driver 15-17 2.3.2 JDBC advantage 17-18 2.3.3 JDBC key features 18 2.3.4 with the database connection pool associated interface 18-20 2.4 Servlet 20-21 Chapter 3 studies typical database connection pool 21-41 3.1 Commons project 21 3.2 Commons-Pool Analysis 21-31 3.2.1 Definition and abstract object pool to achieve 22-26 3.2.2 Pooling achieve 26-31 3.3 Commons-DBCP analysis 31-35 3.3.1 Class PoolingConnection and classes PoolableConnection 32-33 3.3.2 Class BasicDataSource 33-34 3.3.3 Class AbandonedObjectPool 34-35 3.4 Performance Test 35-41 3.4.1 Test Method 36 3.4.2 Performance Statistics 36-37 3.4. two test procedures 37-38 3.4.3 Performance Test 38-41 Chapter 4 Functional Optimization of database connection pool 41-53 4.1 features optimized conception 41-42 4.2 MVC model 42-43 4.2.1 MVC pattern Fundamentals 42-43 4.2.2 MVC pattern advantages and disadvantages 43 4.3 features optimized implementation 43-49 4.3.1 overall architecture design 43-45 4.3.2 model realization 45-46 4.3.3 View achieved 46-48 < br /> 4.3.4 controller implementation 48-49 4.4 functional testing and analysis 49-53 4.4.1 testing capacity increases 49-51 4.4.2 reduced capacity test 51-53 Chapter 5 Conclusions and Prospects 53-55 5. a conclusion 53-54 5.2 Research Prospects 54-55 References 55-58 authors of papers published during the master's degree 58-59 Thanks 59

Related dissertations

  1. Study on the Mechanical System and the Key Technology of the Stair Climbing Robot Which Can Omnibearing Walk
    LiangHu ·Donghua University ·2014 ·Master's thesis
  2. The Design of PC Type Tester for Dial Indicator Gauges
  3. Design and Implementation of RFID Reader Based on Virtual Radio Technology
  4. Research and Design of AVR-based RFID Reader
    ShiZhenTong ·Ningxia University ·2014 ·Master's thesis
  5. Design and Implementation of HRMS Based on Active Database Technology
  6. Design and Implementation of Java Refactoring Plug-in Based on Eclipse
  7. Design and Implementation of the Nanjing Railway Vocational and Technical College Employment Management System
    ShiMingXiang ·Dalian University of Technology ·2013 ·Master's thesis
  8. Design and Implementation of Examination Management System of Anhui Sanlian College
    ChengMiao ·Dalian University of Technology ·2013 ·Master's thesis
  9. Workload Generation Techniques for Process-Aware Information Systems
    DuNaiQiao ·Tsinghua University ·2012 ·Doctoral dissertation
  10. Design&Implementation of Military Asset Management System
    DingLing ·Shandong University ·2013 ·Master's thesis
  11. Design and Implementation of Tobacco Monopoly Management Information System
    WangZuo ·Jilin University ·2013 ·Master's thesis
  12. SINS/GPS Inertial Integrated Navigation System
    LiDiFei ·Shenyang Ligong University ·2013 ·Master's thesis
  13. Design and Implementation of Radar’s Electrify Console
  14. Design of Video Monitor Based on Android
  15. Research of Radio Channel Based on a Localization Rescue System in Disasters
    ChaiLunShang ·Zhejiang University ·2014 ·Master's thesis
  16. The Design and Implementation of the FPGA Based Verification and Testing Platform of NoC
  17. Based on the40Nm Process LVDS Design and Implementation
    MaJuan ·Beijing Jiaotong University ·2014 ·Master's thesis
  18. Functional Verification of YHFT-DX High Performance DSP
  19. Test and application characteristics of dual cascade of microchannel plate
  20. Study on the Application of Schema Theory in English Teaching in Junior Middle School
    HuangLin ·Sichuan Normal University ·2013 ·Master's thesis