Virtual Machine Exception Handling via Snapshot and Resource Release

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In online application systems, when a disconnection occurs due to an exception, virtual machines continue running and occupy resources without releasing them, leading to reduced capacity and efficiency, and clients may fail to resume operations upon reconnection.

Innovation Solution

An exception handling method where a virtual management server receives notifications with user and application identifiers, stores data or snapshot data according to predefined modes, and releases resources, allowing for customized handling and efficient recovery upon reconnection.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If the virtual machine continues running after disconnection to maintain application state, then the application can resume operations, but system resources are occupied and capacity is reduced

Engineering Contradiction:
Improveapplication continuityVSAvoidsystem capacity
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent creates a snapshot copy of the virtual machine's memory state when disconnection is detected. This snapshot is stored externally while the virtual machine resources are released. When reconnection occurs, the snapshot is restored to recreate the application state, enabling continuity without prolonged resource occupation.

Inventive Principle:
Principle #26Copying

Solution Approach 2:

The system performs preliminary actions by detecting disconnection and automatically saving the virtual machine state to a snapshot file before releasing resources. This preparatory step ensures that when the user reconnects, the application can be quickly restored without needing to maintain continuous resource allocation.

Inventive Principle:
Principle #10Preliminary action

2Productivity

If the virtual machine releases resources after disconnection to improve system efficiency, then capacity increases, but the client cannot resume operations

Engineering Contradiction:
Improvesystem efficiencyVSAvoidoperation resumption
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The patent creates a snapshot copy of the virtual machine's memory state when disconnection is detected. This snapshot is stored externally while the virtual machine resources are released. When reconnection occurs, the snapshot is restored to recreate the application state, enabling continuity without prolonged resource occupation.

Inventive Principle:
Principle #26Copying

Solution Approach 2:

The snapshot file acts as an intermediary between the virtual machine state and the restoration process. It preserves the application state externally, allowing resources to be released while maintaining the capability to restore operations later. The snapshot serves as a bridge that decouples resource allocation from state preservation.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Adaptability or versatility

If multiple exception handling modes are supported for different applications, then adaptability improves, but system complexity increases

Engineering Contradiction:
Improveexception handling flexibilityVSAvoidsystem complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent implements different exception handling modes for different applications based on their specific requirements. Each application can be configured with its own handling preference (e.g., save snapshot, release immediately, or maintain state). This localized approach allows high adaptability while keeping the overall system manageable through configuration rather than complex centralized control.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The patent creates a universal exception handling framework that can accommodate multiple handling modes through a common architecture. The virtual machine management system provides a unified interface that supports different strategies (snapshot saving, immediate release, state maintenance) without requiring separate systems, thereby achieving versatility without proportionally increasing complexity.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS9740515B2Exception handling method, apparatus, and client
Publication Date: 2017.08.22 HUAWEI TECH CO LTD
  • US9740515B2 patent drawing
  • US9740515B2 patent drawing
  • US9740515B2 patent drawing

AI summary

Embodiments of the present invention disclose an exception handling method, apparatus, and client. The method includes: receiving, by a virtual management server, an exception notification sent by a virtual machine that interacts with a first client, where the exception notification at least carries a user identifier and an application identifier; and storing, according to a stored exception handling mode corresponding to the user identifier and the application identifier, data of the virtual machine or application data of an application corresponding to the application identifier, and releasing resources of the virtual machine. According to the present invention, different exception handling methods can be customized for different applications and users according to requirements, the client can also store a usage state of a user at exception occurrence time or at the time nearest to the exception occurrence time, and the capacity and efficiency of an online application system are improved.