I know I can disable Java's use of huge-pages for a process by adding
-XX:-UseLargePages
to the process invocation line.
However, I'd like to prevent every java application from using huge-pages, without me having to discover each process running on the machine.
Disabling THP in RH does not do it. Java still, by default, allocate memory from huge-pages even when THP is disabled.