Is this good way to do like this - since getting couple of message, - Java Heap Space and java.lang.memoryexception
did the changes to spoon.bat to increase memory size but still wanna do this manually since there WILL BE NO HARM to the currently handled processes.

import java.util.*;

public class zHandleGCManualwaysIteration
public static void main(String s[])
Runtime rs = Runtime.getRuntime();

is this good to keep in - "User Defined Java Class" step - plz lemme know.