Hi Praveen,
You can accomplish it by adding an environment entry like below :
In console Servers > Application servers > [appserver_name] > Process Definition > Environment Entries
New:
JAVA_DUMP_OPTS ONINTERRUPT(NONE),ONDUMP(JAVADUMP,HEAPDUMP),ONERROR(NONE),ONEXCEPTION(NONE),ONOUTOFMEMORY(JAVADUMP[3],HEAPDUMP[3])
It will create 3 javacores / heapdumps in a row when the OoM situation occurs in your jvm
Hope that helps
Gustavo