Statistical system and method for memory object number of JVM (JAVA virtual machine)

A technology of statistical systems and objects, applied in the field of JAVA virtual machines, can solve the problems of security loopholes and limited number of monitors, and achieve the effect of avoiding security loopholes

Active Publication Date: 2015-03-11
重庆天极云服科技有限公司
View PDF4 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The disadvantages of this solution are: the port needs to be opened on the monitored JVM server, there are security holes, and the number of monitors is limited

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Statistical system and method for memory object number of JVM (JAVA virtual machine)
  • Statistical system and method for memory object number of JVM (JAVA virtual machine)
  • Statistical system and method for memory object number of JVM (JAVA virtual machine)

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] This embodiment introduces a specific implementation manner in which the JVM server 101 collects JMAP information and reports it to the log collection server 102 .

[0028] In this embodiment, the JVM server 101 may include a client collection module and a log client module; wherein,

[0029] The client collection module can be used to periodically obtain the information of the JAVA process to be collected on the JVM server; for each JAVA process, obtain the statistical information of all objects on the JVM server; the statistical information of the object includes: The corresponding number of instances and bytes;

[0030] The log client module is used to generate JMAP information from the information of the JAVA process and the statistical information, and report the JMAP information to the log collection server.

[0031] The JVM server 101 can first write the generated JMAP information locally and then upload it to the log collection server 102, or upload it to the l...

Embodiment 2

[0039] This embodiment introduces a specific implementation of selecting archive files for analysis according to user instructions, such as image 3 It is the implementation flowchart of this embodiment, including:

[0040] Step 301: The user finds that the JVM stack curve is abnormal on the network monitoring graph;

[0041] Step 302: the user selects two time points with large differences on the network monitoring map;

[0042] Step 303: click to compare;

Embodiment 3

[0046] This embodiment introduces an implementation manner of step 304 in Embodiment 2. Such as Figure 4 It is the implementation flowchart of this embodiment, including:

[0047] Step 401: read the archive file corresponding to the first time point, and mark it as archive file 1;

[0048] Step 402: For the archive file 1, summarize each class according to the class name, the summary content includes: the total number of instances and the total number of bytes corresponding to the classes existing in the archive file 1;

[0049] Step 403: read the archive file corresponding to the second time point, and mark it as archive file 2;

[0050] Step 404: For the archive file 2, summarize each class according to the class name, the summary content includes: the total number of instances and the total number of bytes corresponding to the classes existing in the archive file 2;

[0051] Step 405: Generate a first analysis file according to the summary content in the above-mentioned...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a statistical system and method for the memory object number of a JVM (JAVA virtual machine). The system comprises JVM servers, a log collection server, a monitoring and analyzing server and a Web display server, wherein the JVM servers are used for acquiring JMAP (JAVA virtual map) information and reporting the acquired JMAP information to the log collection server; the log collection server is used for storing the JMAP information; the monitoring and analyzing server is used for analyzing and archiving the JMAP information stored by the log collection server so as to obtain archived files and storing the archived files; the Web display server is used for displaying the archived files. With the adoption of the statistical system and method, automatic statistics can be performed on memory usage conditions of the JVM servers, security vulnerabilities can be avoided, and a large number of JVM servers can be monitored.

Description

technical field [0001] The present invention relates to the technical field of JAVA virtual machine (JVM, JAVA Virtual Machine), in particular to a system and method for counting the number of JVM memory objects. Background technique [0002] JVM is a specification for computing equipment. It is a fictitious computer that is realized by simulating various computer functions on an actual computer. In a large-scale service platform, there may be a large number of JVM servers inside. Due to the large amount of concurrency, the business changes frequently, and the code changes accordingly, so the stack resource exhaustion problem often occurs. For this problem, the traditional solution is to manually log in to the specific JVM server by the administrator after an abnormality is found, and check the memory usage through the JAVA tool. The disadvantage of this solution is that a port needs to be opened on the monitored JVM server, there are security holes, and the number of monit...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F11/34H04L12/24H04L29/08
Inventor 李清森
Owner 重庆天极云服科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products