The invention relates to a method and
system for detecting
memory leak facing Xen
virtualization environment during operation. The method for
memory leak under Xen
virtualization calculating environment during operation is provided. The method mainly includes: (1) performing dynamic analysis on memory usage action of a monitored program, grouping memory objects, and maintaining and updating related information on the memory objects; (2) detecting potential
memory leak based on objected behavior characteristics; (3) and performing memory leak judgment according to related rules. Compared with the prior art, the method and
system can detect the memory leak during operation in cross-
operating system platform and cross-language
development environment mode, is wide in application range, has good performance, can improve quality and development efficiency of a
software development industry especially
software products with limited memory, shortens period of
software development, saves development cost directly, and can bring good economic benefit and social benefit.