It would be good if the HeapDumpFile could be specified as a directory rather than a complete file name. That would allow multiple VMs be started with the same command options and still override the location of the dump file.
So -XX:HeapDumpFile=/dumps would result in the dump file /dumps/java_pid<pid>.hprof.
So -XX:HeapDumpFile=/dumps would result in the dump file /dumps/java_pid<pid>.hprof.