物流信息平臺高并發(fā)技術研究
發(fā)布時間:2018-03-31 06:10
本文選題:高并發(fā) 切入點:數(shù)據(jù)庫 出處:《北京郵電大學》2014年碩士論文
【摘要】:隨著互聯(lián)網的飛速普及,基于web的物流信息平臺更加廣泛的被使用。隨之而來的是系統(tǒng)并發(fā)訪問量的增長,系統(tǒng)的并發(fā)性能成為衡量物流信息平臺的關鍵指標,同時也成為制約物流信息平臺發(fā)展的瓶頸之一。 本文分析了物流信息平臺的主要子模塊與實現(xiàn)技術,針對不同的模塊進行了研究并提出了優(yōu)化方案。 在數(shù)據(jù)庫方面,基于Mysql,針對Mysql事務實現(xiàn)方式的不足,提出了基于悲觀鎖和樂觀鎖編程模型。分析了表與索引的原理,針對表結構設計,索引設計提出了一般性的設計原則。在水平拓展方面,提出了垂直拆分與水平拆分技術方案。 在緩存系統(tǒng)方面,比較了本地緩存與分布式緩存,提出了細粒度的緩存方案,同時結合物流信息平臺中常見的業(yè)務邏輯設計了具有通用性的關聯(lián)數(shù)據(jù)緩存方案。 在Web服務器優(yōu)化方面,研究了衡量web服務器性能的關鍵指標。針對JavaEE框架,研究了JVM內存回收機制,提出了JVM設置與垃圾回收器選擇的一般性原則。并以tomcat為例,分析了線程數(shù)與I/0模型對web服務器性能的影響。此外對JAVA的NIO進行了研究,最后提出從線程數(shù)與I/O方式兩方面對JavaEE web服務器進行優(yōu)化的方案。 在分布式集群方面,比較了不同的負載均衡實現(xiàn)方法。提出了三種集群間用戶狀態(tài)同步的方案。 最后,基于上述理論對兩個實際的高并發(fā)系統(tǒng)的進行了優(yōu)化,取得了良好的優(yōu)化結果,證明了上述理論的有效性。
[Abstract]:With the rapid popularization of the Internet, the logistics information platform based on web has been more widely used. With the increase of concurrent access to the system, the concurrent performance of the system has become the key index to measure the logistics information platform. At the same time, it has become one of the bottlenecks restricting the development of logistics information platform. In this paper, the main sub-modules and implementation techniques of the logistics information platform are analyzed, the different modules are studied and the optimization scheme is put forward. In the aspect of database, aiming at the deficiency of Mysql transaction implementation, the programming model based on pessimistic lock and optimistic lock is put forward based on MySQL. The principle of table and index is analyzed, and the design of table structure is given. The general design principles of index design are put forward. In the aspect of horizontal extension, vertical split and horizontal split technology are proposed. In the aspect of cache system, this paper compares the local cache with the distributed cache, proposes a fine-grained cache scheme, and designs a universal associated data cache scheme combined with the common business logic in the logistics information platform. In the aspect of Web server optimization, the key indexes to measure the performance of web server are studied. Aiming at the JavaEE framework, the mechanism of JVM memory recovery is studied, and the general principles of JVM setting and garbage collector selection are put forward. The tomcat is taken as an example. The influence of thread number and I / O model on the performance of web server is analyzed. In addition, the NIO of JAVA is studied, and the scheme of optimizing JavaEE web server from two aspects of thread number and I / O mode is put forward. In the aspect of distributed cluster, different load balancing methods are compared, and three schemes of user state synchronization among clusters are proposed. Finally, based on the above theory, two practical high concurrent systems are optimized, and good optimization results are obtained, which proves the validity of the above theory.
【學位授予單位】:北京郵電大學
【學位級別】:碩士
【學位授予年份】:2014
【分類號】:TP393.05
【參考文獻】
相關期刊論文 前2條
1 趙慧玲;劉美榮;;SQL數(shù)據(jù)庫中并發(fā)控制的研究[J];長春工程學院學報(自然科學版);2009年02期
2 胡雯;李燕;;MySQL數(shù)據(jù)庫存儲引擎探析[J];軟件導刊;2012年12期
,本文編號:1689480
本文鏈接:http://sikaile.net/guanlilunwen/ydhl/1689480.html
最近更新
教材專著