I'm trying to run the garbage collector from User Defined Java Expression. The following comment is contained in the Memory Usage getPercentageFreeMemory.ktr sample. My question is how do I specify the optional System.gc()?

"The numbers differs a bit out of the GC - to elimite the GC effect we could add an option before getting the free memory and do the optional System.gc();
This would slow down things a bit but you get pretty nice (almost exact) results.
BTW: When you get only values about 99% you should lower the memory settings to get better results"