I have a legacy application which is started in a Java 8 JVM with the argument:
-XX:ThreadPriorityPolicy=42
I am attempting to run this same application in a Java 10 JVM. However, this encounters an error on start-up:
intx ThreadPriorityPolicy=42 is outside the allowed range [ 0 ... 1 ]
Improperly specified VM option 'ThreadPriorityPolicy=42'
This is presumably due to a change in the JVM implementation moving to the later versions of HotSpot JVM. I have found a number of questions regarding Cassandra and this problem, but I cannot find any documentation / issue tracking to document this change in the JVM. Is there somewhere I can read about this?
This argument was presumably added to the legacy application for a valid reason. How best should I handle this in Java 10? Set the value to 1
? Omit the argument?