Font Size: a A A

Research On NIO-Based Java High-Performance Network Application Technology

Posted on:2010-11-11Degree:MasterType:Thesis
Country:ChinaCandidate:Z Q CengFull Text:PDF
GTID:2178360278966265Subject:Communication and Information System
Abstract/Summary:PDF Full Text Request
With the development of network technologies, more and more people and companies use Internet, and network scale is increasing. So network application needs higher performance which means it should afford parallel client request and send response timely at the situation of high parallel client request and short connection. Java is used in the development of network application widely, but Java network application developed by tradition development pattern is hard to meet this requirement, so we need to explore new java high performance network application technologies, and research on new development pattern.This thesis analyzes the infrastructure of network application, including computer network, I/O system of operating system, client-server model, and finds out that the bottleneck of network application is in the network I/O. Then the thesis does some research on tradition development pattern of Java network application which is based on the stream I/O and multi-thread technology, and find out the factors of low performance.In allusion to the bottleneck, the thesis starts to research on new high performance network application technologies, including NIO and thread pool. Then based on them, this thesis realizes new development pattern: reactor pattern. It improves the performance of java network application greatly, but it is hard for developers to use. To solve this problem, the thesis researches on MINA framework, which can help users develop high performance network applications based on the new pattern easily.The thesis designs and implements some applications, and sums up the basic development flow of new pattern. To file copy application and short message gateway application as an example, File copy application aims to assess the I/O speed promotion of block read and write. Short message gateway application aims to assess the performance promotion of network application based on new development pattern. Then the thesis does some performance test on them, and compares the test data to validate theoretical analysis.By theoretical research and test of practical application, this thesis can conclude that reactor pattern based on NIO and thread pool can meet the requirement of the situation of high parallel client request and short connection, and provide a good reference pattern to develop high performance network application.
Keywords/Search Tags:network application, non-blocking, NIO, reactor, MINA
PDF Full Text Request
Related items