Hi Kushal,
Yes, you can do using environment variables (in setupCmdLine f.e) but take in mind that if you put in setupCmdLine is for all servers the same behavior, if you put in Joseph's way only selected servers has different behavior.
JVM environment settings publib.boulder.ibm.com/infocenter/javasd... Javadump and Heapdump options The following list describes the Javadump and Heapdump options. The recommended way of controlling the production of diagnostic data is the -Xdump command-line option, described in Using dump agents.
The -Xdump option on the command line is the preferred method for producing dumps for cases where the default settings are not enough. You can also produce dumps using the JAVA_DUMP_OPTS environment variable.
Using dump agents publib.boulder.ibm.com/infocenter/javasd... Using -Xdump agent not only you can set the location of dumps also you can select what type of dumps generate for example yes javacores but not heapdump
Hope this helps.
regards