is there any possibility to specify custom percentage of time spent in GC for the -Xenableexcessivegc case?
As per your documentation the percentage seems to be fixed to 95%:
-Xenableexcessivegc If excessive time is spent in the GC, the option returns null for an allocate request and thus causes an OutOfMemory exception to be thrown. This action occurs only when the heap has been fully expanded and the time spent is making up at least 95%. This behavior is the default.
However I'd like to set it to lower value (about 90%) in order to hasten the OOME and the following heap dump generation.
As it doesn't seem to be possible, is there any chance for this to be implemented in future release?