We have a requirement where the total application jvm memory is too high and is varying based on the input dataset. So we have no idea about the maximum heap size to be set using the -Xmx command line option. The total memory needed is greater than the default maximum heap size( 1/4 -th of the total physical memory).
When we are not giving any GC ergonomics command line parameters, memory is not growing after 9-9.5 GB( The total physical memory in the system is 38GB). And application would get stuck at this point.
If we give the Xmx value to 20 GB, application is running. But we are not sure about the maximum heap size value since it can change according to the input data. Please advise on how to proceed in this case. Do we have any option to increase the heap memory beyond the Xmx value? Thanks for the help.