Hi Saravana,
The initial heap size and maximum heap size for a JVM can be set using wsadmin scripting. I feel wsadmin takes less time to execute and also more reliable.
To do this, go to WAS_PROFILE_ROOT/bin and launch wsadmin.sh. Once wsadmin prompt is launched, execute the following scripts to set the JVM heap sizes.
$AdminTask setJVMInitialHeapSize {-serverName SERVER_NAME -nodeName NODE_NAME -initialHeapSize 256}$AdminTask setJVMMaxHeapSize {-serverName SERVER_NAME -nodeName NODE_NAME -maximumHeapSize 1024}$AdminConfig savewhere, heap size is in MB