The invention provides a new method for determining a
virtual machine migration opportunity. The method comprises the following steps: when any
resource utilization rate of a
virtual machine reaches acertain value, starting a prediction module; performing
numerical fitting according to the
resource utilization rates corresponding to an interval
fixed time length within the closer time before themoment; deducing the function to obtain a function corresponding to a change slope; solving a change value of the function in a future period of time to obtain a change trend of the
utilization rate;if the change trend is always increasing, determining as the
virtual machine migration opportunity; if the change trend is in a decreasing state, continuously monitoring the
utilization rate; if the change trend is in a fluctuation state, calculating an integral value of a slope function in the future period of time to obtain the change value of the
utilization rate; and comparing the change valuewith a set threshold value to determine the migration opportunity. After the prediction stage, if the utilization rate is still increasing and reaches a
limit value, the
duration time of the utilization rate reaching the
limit value is counted as a judgment condition of virtual
machine migration. According to the method, by predicting the change trend of each utilization rate of the virtual
machine, a tight resource is located; corresponding judgments are made according to different change trends to implement accurate positioning of the migration opportunity.