ClearForeRuntimeResult ClearForeRuntime(MbId tMb)
tMb. Repository connection moniker.
The ClearForeRuntime operation clears Fore runtime.
After the operation is executed, unused objects are force deleted from the memory and repository cache, unused assemblies are unloaded, and possible memory leaks are detected. To execute the operation, in the mb field specify repository connection moniker. The moniker can be obtained on executing the OpenMetabase operation.
The operation result determined whether Fore runtime is cleared successfully and returns information about memory leaks if there were detected.
Below is the example of clearing Fore runtime. The request contains moniker of opened repository connection. The response contains whether Fore runtime was cleared successfully or information about memory leaks if they were detected.
{
"ClearForeRuntime" :
{
"tMb" :
{
"id" : "MPBAOFILBBEIGOAELJGEFNOHPMGBKPMENKOPKADOLFCLAKMI!M"
}
}
}
{
"ClearForeRuntimeResult" :
{
"clearedAll" : "1",
"consoleOutput" : "No leaked objects left
"
}
}
public static ClearForeRuntimeResult ClearForeRuntime(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tClear = new ClearForeRuntime()
{
tMb = new MbId() { id = moniker }
};
// Clear Fore runtime
var result = somClient.ClearForeRuntime(tClear);
return result;
}
See also: