Java parameters to move heap dumps created to specific file system

Java parameters to move heap dumps created to specific file system

We need Java parameters to move the heap dumps created to specific file system i.e. /heapdumps with the file name as “heapdump.%Y%m%d.%H%M%S.%pid.phd”
webMethods 9.10 Integration Server is running on Sun JVM shipped with webMethods installation.

we have tried to modify “./configuration/custom_wrapper.conf’” with below values:
wrapper.java.additional.204=-XX:+HeapDumpOnOutOfMemoryError
wrapper.java.additional.205=-XX:HeapDumpPath=/heapdump.%Y%m%d.%H%M%S.%pid.phd

with this change we are able to move the heapdumps to specific folder but file is not having timestamp

Please suggest

  1. what should be the format for adding timestamp in heapdump file name

Please try appending File name along with extention as shown below,
Filename.$(date +_%m%d%Y.%H:%M:%S).bin