Forum Discussion
SmartBear_Suppo
Alumni
17 years agoHello!
Garbage collection is generally left to the VM to handle automatically. It can be called manually, either via the memory log or programatically via a groovy script.
To run garbage collection in a groovy script, use the following:
This could be added as a TearDown script, or as a test step of its own.
Regards,
Dain
eviware support
Garbage collection is generally left to the VM to handle automatically. It can be called manually, either via the memory log or programatically via a groovy script.
To run garbage collection in a groovy script, use the following:
System.runFinalization();
Runtime.getRuntime().gc();
This could be added as a TearDown script, or as a test step of its own.
Regards,
Dain
eviware support