Tools MemoryCleanup

Aus ExpeccoWiki

Wechseln zu: Navigation, Suche

Under normal conditions, you don't have to care about expecco's memory: its underlying support system performs automatic memory management (garbage collection). This includes automatic finalization of objects which refer to operating system resources such as file handles, database-connections etc. However, these finalizations may happen quite delayed, due to the fact that the garbage collector is usually only invoked when running out of memory or when more memory is requested. This means, that if a file- or database handle has not been closed, but is also no longer used by a testSuite, that handle will be closed (and thereby freed) whenever the next garbage collect operation occurs. Which, if no memory is needed for some time, may happen quite delayed.

This tool-function forces a garbage collect operation to be triggered immediately, and thereby freeing any unreferenced operating system resources, by having them finalized, which closes the operating system handles.


Back to Online Documentation.

Meine Werkzeuge