Here are links to two Metalink documents that explain concepts like Garbage Collection and Memory Management. Provides answers to important questions such as
- Within eScript, Siebel recommends explicitely releasing the memory used by Siebel objects by setting the variables to null within a finally block. Besides Siebel objects, are there any other types of objects that should be set to null? For example, what about objects created with the new statement?
var myArray = new Array();
var myDate = new Date();
// any other object types? - In order for a variable to be referenced inside of a finally block, is it required for the variable to be declared before the try block, or can it be declared within the try block without any risk of not having all of the null statements work properly.
try
{
// The variables are declared inside the try block
var myBusObj = TheApplication().GetBusObject(”foo”);
if (…)
{
var myOtherBusObj = TheApplication().GetBusObject(”bar”);
}
}
catch (e)
{
…
}
finally
{
// Is there any possibility that these statements won’t work because
// the variables might not be in scope for this block?
myBusObj = null;
myOtherBusObj = null;
}
- If the return value from the property set GetChild() method is set to a variable, should this variable also be set to null? Or is only setting the parent property set variable to null sufficient to release all memory.
- Before setting a variable to null that references a property set, is it necessary to call the Reset() method to clear the property set, or is simply setting the variable to null sufficient to release all memory?
- Would the following statement cause a memory problem because the business object is not set to a variable and therefore not set to null?
var myBusComp = TheApplication().GetBusObject(”foo”).GetBusComp(”bar”);
myBusComp = null;

2 Comments at "Siebel Memory Management and Garbage Collection"
I thought I should add that both the metalink docs are for version v7.5.3.*. Also, it does not cover the new script stengine.
As far as my information goes…
there is nothing that has changed on the script engine from 7.5 to 7.8 so if you using T engine and you are even on Siebel 8.0 these docs are valid…
yes, it doesn’t contain capabilites of new ST Engine.. will try to find something regarding that
Comment Now!