Forum Discussion
SmartBear_Suppo
16 years agoSmartBear Alumni (Retired)
Hello!
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
Related Content
- 2 years ago
- 13 years ago
- 8 years ago
Recent Discussions
- 15 years ago
- 4 days ago
- 4 days ago