Patent ID: 9740515
Date: 2017-08-22
CPC Classifications: G06F,H04L

Claim:
1. An exception handling method performed by a virtual management server, the method comprising: receiving a first connection request sent by a client to run an application, wherein the first connection request carries a user identifier, an application identifier of the application and a specified exception handling mode; determining and storing the specified exception handling mode as an exception handling mode corresponding to the user identifier and the application identifier; selecting a virtual machine to run the application, wherein the client establishes connection with the virtual machine to use the application; receiving an exception notification sent by the virtual machine, wherein the exception notification carries the user identifier and the application identifier of the application interrupted by exception; storing virtual machine data or application data of the application to a data storage server based on the exception handling mode, wherein a virtual machine state storage mode stores the virtual machine data, including at least a snapshot of a current state of the virtual machine and wherein an application storage mode stores the application data including at least user personal data; releasing resources of the virtual machine; receiving a second connection request sent by the client, wherein the second connection request carries the same user identifier and the application identifier of the first connection request, wherein the application indicated by the second connection request requires exception recovery; obtaining data to be recovered from the data storage server; and when the data to be recovered is the application data, selecting any one of idle virtual machines that supports the application as a selected virtual machine, wherein the application data is copied to the selected virtual machine and the application interrupted by the exception is run on the selected virtual machine according to the application data.