Skip to content

CAUTION: This site hosts draft documentation for the next release. For published content of the latest release, visit


Restriction: This option is deprecated; the option is accepted but ignored.

(Linux® only)

The -XX:+DisclaimJitScratch option signals to the operating system to discard temporary physical memory that is consumed by the JIT compilation threads.


Setting Effect Default
-XX:+DisclaimJitScratch Enable
-XX:-DisclaimJitScratch Disable yes


Discarding temporary physical memory can reduce the physical memory reported in use by the Java™ application. The physical memory that is released is available to other processes without the operating system needing to search for the least recently used frames.

The -XX:-DisclaimJitScratch option turns off a previously enabled -XX:+DisclaimJitScratch option.