4 ms·
You can get such functionality in Oracle's JVM by using the command line option -XX:+UseGCOverheadLimit. This will cause OOM-exception to be thrown when at lea
by eonwe 14y ago
You can get such functionality in Oracle's JVM by using the command line option -XX:+UseGCOverheadLimit.
This will cause OOM-exception to be thrown when at least 98% of program time is used in garbage collection and at most 2% of the total memory is reclaimed in such collections.