Hi,
For Java 5.0 (as used under WAS 6.1) heapdumps will be created by default in the following order of preference
1) The location specified by the IBM_HEAPDUMP environment variable
2) The current working directory of the process (by default the profile dir of the App Server)
3) The location secified by the TMPDIR environment variable
4) /tmp
The important distinction for 1) and 3) is that this is an environment variable not a system property or WebSphere Variable and can only be set on the individual JVM level.
An easier way to set the location for Java 5.0 and 6.0 is to use the -Xdump JVM command line option. To set the default location for all heapdump use the following:
-Xdump:heap:defaults:file=/path/to/store/heapdump.%Y%m%d.%H%M%S.%pid.phd
This should be appended to the "Generic JVM args" section in the WAS Admin Console.
Ben Hardill