-XX:+HeapDumpOnOutOfMemoryError was backported to 1.4.2_12, although
some specific bugs may require you to use 1.4.2_15 or later.
Support for "jmap" on Win32 only starts from Java 1.6.
You could also try to use YourKit to obtain a (YK-specific) memory
snapshot on Win32/Java 1.4. However, this is out of scope for discussion
in this newsgroup I think :)