基于線程遷移的分布式Java虛擬機的研究與實現(xiàn)
發(fā)布時間:2018-07-23 15:43
【摘要】:隨著互聯(lián)網(wǎng)的迅速發(fā)展,分布式計算正在高性能計算、海量數(shù)據(jù)處理、大規(guī)模服務器端技術等領域發(fā)揮著越來越重要的影響,成為不可或缺的支柱技術。與此同時,Java虛擬機技術的作用也在變得日益重要。首先,Java虛擬機提供了跨平臺的底層實現(xiàn),可以為底層異構系統(tǒng)的實現(xiàn)屏蔽基礎設施的細節(jié)。其次Java虛擬機的實現(xiàn)能夠根據(jù)不同的應用場景和底層基礎設施做不同的優(yōu)化,同時又對上層應用保持透明,實現(xiàn)同一代碼一次編譯,在不同環(huán)境中實現(xiàn)執(zhí)行效能的優(yōu)化。另外,Java虛擬機提供的內(nèi)存自動管理、垃圾回收機制和完全的動態(tài)鏈接特性,可以有效降低大型系統(tǒng)的設計和實現(xiàn)的復雜度。Java虛擬機因其諸多優(yōu)良的特性,正在脫離純粹的Java語言執(zhí)行環(huán)境的角色,成為下一代通用計算平臺。 本文在深入研究了分布式計算與Java語言實現(xiàn)理論的基礎上,分析了典型代表系統(tǒng)的設計與實現(xiàn),提出了在Java虛擬機層次上基于線程遷移來實現(xiàn)分布式計算框架,為Java應用程序提供透明的分布式計算基礎設施的設想。在Java虛擬機一層實現(xiàn)分布式計算框架有其獨到的優(yōu)勢,主要包括以下幾個方面: 第一,底層分布式特性對于高層業(yè)務完全透明,Java程序員可以完全透明的像在單節(jié)點Java虛擬機上一樣編程,降低從業(yè)務邏輯到分布式計算模式映射的難度,降低開發(fā)成本; 第二,傳統(tǒng)的分布式程序調(diào)試困難,分布式Java虛擬機支持首先在單節(jié)點虛擬機上編程調(diào)試再直接遷移到分布式環(huán)境發(fā)布運行,大大縮短分布式系統(tǒng)開發(fā)、調(diào)試、升級周期,降低系統(tǒng)維護難度; 第三,易于遺產(chǎn)代碼的二次分布式開發(fā)。一些遺產(chǎn)代碼要轉(zhuǎn)換成分布式程序并進行維護存在困難,成本高昂,此時可以使用分布式Java虛擬機實現(xiàn)平滑轉(zhuǎn)換。 本文在深入研究了基于線程遷移實現(xiàn)分布式Java虛擬機的理論問題的基礎上,實現(xiàn)了分布式Java虛擬機原型singleJava,并對其實用性能做出了測試與評估,主要工作內(nèi)容包括: 1)分布式Java虛擬機上的線程遷移機制; 2)任務遷移時的負載平衡策略; 3)跨節(jié)點透明訪問的分布式Java堆; 4)分布式環(huán)境下Java線程的同步互斥機制; 5)分布式環(huán)境下的內(nèi)存自動管理和垃圾回收; 6)singleJava的性能測試與評估。
[Abstract]:With the rapid development of the Internet, distributed computing is playing a more and more important role in the fields of high-performance computing, massive data processing, large-scale server-side technology and so on, and has become an indispensable pillar technology. At the same time, the role of Java virtual machine technology is becoming increasingly important. First, Java Virtual Machine (JVM) provides a cross-platform implementation, which can mask the details of infrastructure for the implementation of the underlying heterogeneous system. Secondly, the implementation of Java virtual machine can make different optimization according to different application scenarios and infrastructure, at the same time, it can keep transparency to the upper application, realize the same code compile once, and optimize the execution performance in different environments. In addition, the Java Virtual Machine provides automatic memory management, garbage collection mechanism and complete dynamic link features, which can effectively reduce the complexity of the design and implementation of large systems. Moving away from the role of a pure Java execution environment, it is becoming the next generation of general-purpose computing platforms. Based on the research of distributed computing and Java language implementation theory, this paper analyzes the design and implementation of typical representative system, and proposes a distributed computing framework based on thread migration in Java virtual machine level. The idea of providing a transparent distributed computing infrastructure for Java applications. The implementation of distributed computing framework in Java virtual machine layer has its unique advantages, including the following aspects: first, The underlying distributed property can be completely transparent to the high-level business Java programmers can be as transparent as on the single node Java virtual machine programming, reduce the business logic to the distributed computing model mapping difficulty, reduce development costs; Second, the traditional distributed program debugging is difficult. The distributed Java virtual machine supports programming debugging on the single node virtual machine and then migrating directly to the distributed environment, which greatly shortens the distributed system development and debugging. Upgrade cycle, reduce system maintenance difficulty; third, easy to legacy code secondary distributed development. It is difficult and expensive to convert some legacy code into distributed program and maintain it. The distributed Java virtual machine can be used to realize smooth transformation. On the basis of deeply studying the theory of implementing distributed Java virtual machine based on thread migration, the prototype of distributed Java virtual machine single Java is implemented in this paper, and its practical performance is tested and evaluated. The main work includes: 1) thread migration mechanism on distributed Java virtual machine; 2) load balancing strategy for task migration; 3) transparent access to distributed Java heap across nodes; 4) synchronous mutex mechanism of Java threads in distributed environment; 5) automatic memory management and garbage collection in distributed environment; 6) performance test and evaluation of singleJava.
【學位授予單位】:浙江大學
【學位級別】:碩士
【學位授予年份】:2013
【分類號】:TP338.8;TP311.1;TP302
本文編號:2139870
[Abstract]:With the rapid development of the Internet, distributed computing is playing a more and more important role in the fields of high-performance computing, massive data processing, large-scale server-side technology and so on, and has become an indispensable pillar technology. At the same time, the role of Java virtual machine technology is becoming increasingly important. First, Java Virtual Machine (JVM) provides a cross-platform implementation, which can mask the details of infrastructure for the implementation of the underlying heterogeneous system. Secondly, the implementation of Java virtual machine can make different optimization according to different application scenarios and infrastructure, at the same time, it can keep transparency to the upper application, realize the same code compile once, and optimize the execution performance in different environments. In addition, the Java Virtual Machine provides automatic memory management, garbage collection mechanism and complete dynamic link features, which can effectively reduce the complexity of the design and implementation of large systems. Moving away from the role of a pure Java execution environment, it is becoming the next generation of general-purpose computing platforms. Based on the research of distributed computing and Java language implementation theory, this paper analyzes the design and implementation of typical representative system, and proposes a distributed computing framework based on thread migration in Java virtual machine level. The idea of providing a transparent distributed computing infrastructure for Java applications. The implementation of distributed computing framework in Java virtual machine layer has its unique advantages, including the following aspects: first, The underlying distributed property can be completely transparent to the high-level business Java programmers can be as transparent as on the single node Java virtual machine programming, reduce the business logic to the distributed computing model mapping difficulty, reduce development costs; Second, the traditional distributed program debugging is difficult. The distributed Java virtual machine supports programming debugging on the single node virtual machine and then migrating directly to the distributed environment, which greatly shortens the distributed system development and debugging. Upgrade cycle, reduce system maintenance difficulty; third, easy to legacy code secondary distributed development. It is difficult and expensive to convert some legacy code into distributed program and maintain it. The distributed Java virtual machine can be used to realize smooth transformation. On the basis of deeply studying the theory of implementing distributed Java virtual machine based on thread migration, the prototype of distributed Java virtual machine single Java is implemented in this paper, and its practical performance is tested and evaluated. The main work includes: 1) thread migration mechanism on distributed Java virtual machine; 2) load balancing strategy for task migration; 3) transparent access to distributed Java heap across nodes; 4) synchronous mutex mechanism of Java threads in distributed environment; 5) automatic memory management and garbage collection in distributed environment; 6) performance test and evaluation of singleJava.
【學位授予單位】:浙江大學
【學位級別】:碩士
【學位授予年份】:2013
【分類號】:TP338.8;TP311.1;TP302
【參考文獻】
相關期刊論文 前3條
1 崔莉,鞠海玲,苗勇,李天璞,劉巍,趙澤;無線傳感器網(wǎng)絡研究進展[J];計算機研究與發(fā)展;2005年01期
2 馬建剛;黃濤;汪錦嶺;徐罡;葉丹;;面向大規(guī)模分布式計算發(fā)布訂閱系統(tǒng)核心技術[J];軟件學報;2006年01期
3 杜宗霞;懷進鵬;;主動分布式Web服務注冊機制研究與實現(xiàn)[J];軟件學報;2006年03期
,本文編號:2139870
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/2139870.html
最近更新
教材專著