If we build a native-image with --enable-monitoring=heapdump and start the native-image with ... -XX:+HeapDumpOnOutOfMemoryError ... the process terminates with the error message:
error: Could not find option 'HeapDumpOnOutOfMemoryError'. Did you mean one of these: ExitOnOutOfMemoryError. Use -XX:PrintFlags= to list all available options.
It would be nice if this feature was supported to analyze out of memory errors.