Research and Application of Real Time Performance Profiling System Based on JVMTI
- Author
- ChenJunZuo
- Advisor
- SunXiaoLi
- School
- Dalian University of Technology
- Major
- Computer Software and Theory
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 59
- Citations
- 0
Abstract
With the developing of Java technology, the applications of Java software have spread from desktop applications to enterprise platforms, information systems, control systems and embedded systems. But the architecture of Java software determines that the Java applications are not as effective as the applications developed by C/C++. So the performance optimization of Java software is very necessary.Many contemporary Java applications rely on a complex set of distributed dependencies and moving parts. Numerous external factors can have an impact on your application’s performance and availability. These influences are virtually impossible to eliminate completely or account for and accurately emulate in a preproduction environment. It is wise to do low-level granular profiling of Java performance efficiently. The data from profiling can provide valuable insights into system operation and reveal constraints and influences that affect an environment’s stability and performance.The JVMTI(Java Virtual Machine Tool Interface) is a programming interface used by development and monitoring tools. It provides both a way to inspect the state and to control the execution of applications running in the Java virtual machine(VM). JVMTI is intended to provide a VM interface for the full breadth of tools that need access to VM state, including but not limited to: profiling, debugging, monitoring, thread analysis, and coverage analysis tools.This paper studies the JVMTI agent mechanism, designs and implements JVMTIJava interface based on the study, namely the Java profiling programming interface using JVMTI. JVMTIJava is a higher level interface for profiling Java virtual machine. With JVMTIJava developers can work more efficiently. This paper introduces the JNI technology used in the JVMTIJava interface, the design and implementation of the native profiling agent, the classification about the JVMTIJava interface, and details illustrated the implementation of Memory snapshot function of the JVMTIJava interface.Finally this paper designs and implements a real-time performance profiling system based on the real demand of the enterprises. This system uses B/S framework. Customers can view the running status of Java application via Web browser. The system achieves the performance profiling about the virtual machine instance of Java application inspected by itself. Furthermore, the system uses Comet strategy of Reverse Ajax and FusionCharts component to display the real-time profiling data obtained from the sever end. At last a test of that system is done.
Table of contents
Abstract 4-5
Abstract 5-9
1 Introduction 9-13
1.1 Background topics 9-10
1.2 Java performance profiler Research 10-12
1.3 of this paper mainly work 12
1.4 the papers contents of the organization 12-13
2 system development of related technology 13-25
2.1 Ajax 13-17
2.1.1 Ajax Overview 13-14
2.1.2 Ajax framework overview 14
2.1.3 Dojo framework 14-16
2.1.4 DWR framework 16-17
2.2 DOM 17-18
2.3 Java Virtual Machine 18-20
2.4 JM 20-22
2.5 JVMTI 22-25
2.5.1 JVMTI About 22-23
2.5.2 JVMTI architecture 23
2.5.3 JVMTI environment variable 23-24
2.5.4 JVMTI function variables 24
2.5.5 JVMTI function 24-25
3 performance profiling interface design and implementation 25-38
3.1 development JVMTI agent 25
3.2 JVMTIJava Interface Overview 25-26
3.3 performance profiling interface specific implementations JNI technology 26-30
3.3.1 JNI function 26-27
3.3.2 numerical parameters and return values ?? 27
3.3.3 string parameter 27-28
3.3.4 code signing 28
3.3.5 Java object domain 28-29
3.3.6 invoke Java methods 29-30
3.4 dissect the proxy local library design and implementation 30-33
3.4.1 local library, the overall structure of 30-31
3.4.2 local library specific realization 31-33
3.5 performance profiler interface architecture 33
3.6 each sub-module functional design description 33-34
the
the 3.7 memory snapshot function specific to achieve 34-38
design of real-time performance profiling system 38-55
4.1 system outline design 38-39
4.1.1 system overall goal 38
system 4.1.2 overall architecture design 38-39
4.2 system function module divided 39-40
4.3 the system asynchronous communication process analysis 40-44
4.3.1 synchronous and asynchronous communication timing relationship 40-42
4.3.2 system asynchronous communication process design 42-44
4.4 asynchronous processing module deployment 44-46
4.5 module implementation of real-time display 46-51
the dynamic refresh
4.5.1 traditional information technology 46-47
4.5.2 system real-time display of business logic 47
the 4.5.3 of FusionCharts controls use 47-49
4.5.4 using JDOM API operation XML document 49-51
4.6 data encapsulation module implementation 51-53
4.7 test 53-55
concluded 55-56
the
References 56-58
during the master's degree Post academic situation 58-59
Acknowledgements 59-60