The problem of CPU limits in JVM was solved in Java 10 and is backported to Java 8 from build 8u191:
-XX:ActiveProcessorCount=2
The problem of CPU limits in JVM was solved in Java 10 and is backported to Java 8 from build 8u191:
-XX:ActiveProcessorCount=2