Garbage collecting and load balancing method and system of Java virtual machine
A java virtual machine, load balancing technology, applied in the field of load balancing, can solve problems such as business impact and server stalls
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0048] The present embodiment provides a garbage collection method of a Java virtual machine, such as figure 1 shown, including steps:
[0049] S11: Detect the usage rate of the old generation of the Java virtual machine through the detection process of the business server;
[0050] S12: Determine whether the usage rate of the old generation reaches the preset threshold, if so, send a notification to suspend the business request of the current business server to the notification process of the load balancer and start garbage collection, otherwise, continue to wait.
[0051] The acronym for Java Virtual Machine is JVM. JVM is a specification for computing equipment. It is a fictitious computer that is realized by simulating various computer functions on an actual computer.
[0052] In order to improve server performance, load balancer plus business server mode is widely used at present, such as Figure 9 as shown, Figure 9 It is a schematic diagram of a load balancing depl...
Embodiment 2
[0072] The present embodiment provides a garbage collection method of a Java virtual machine, such as image 3 shown, including steps:
[0073] S31: Detect the usage rate of the old generation of the Java virtual machine through the detection process of the business server;
[0074] S32: Determine whether the usage rate of the old generation reaches the preset threshold, if so, send a notification to suspend the business request of the current business server to the notification process of the load balancer and start garbage collection, otherwise, continue to wait;
[0075] S33: Determine whether the garbage collection has ended through the JVM log, and if so, send a notification of resuming the service request of the current service server to the notification process of the load balancer; otherwise, continue to wait.
[0076] The difference between this embodiment and the first embodiment is that step S33 is further included.
[0077] Specifically, it is judged whether the ...
Embodiment 3
[0086] The present embodiment provides a garbage collection method of a Java virtual machine, such as Figure 5 shown, including steps:
[0087] S51: Detect the JVM information and JVM log of the Java virtual machine at a preset time interval T;
[0088] S52: Detect the usage rate of the old generation of the Java virtual machine through the detection process of the business server;
[0089] S53: Determine whether the usage rate of the old generation reaches the preset threshold, if so, send a notification to suspend the business request of the current business server to the notification process of the load balancer and start garbage collection, otherwise, continue to wait;
[0090] S54: Determine whether the garbage collection has ended through the JVM log, and if so, send a notification of resuming the service request of the current service server to the notification process of the load balancer; otherwise, continue to wait.
[0091] The difference from Embodiment 1 and Em...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com