FULL PRODUCT VERSION :
java version "9-ea"
Java(TM) SE Runtime Environment (build 9-ea+142)
Java HotSpot(TM) 64-Bit Server VM (build 9-ea+142, mixed mode)
java version "1.8.0_112"
Java(TM) SE Runtime Environment (build 1.8.0_112-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.112-b16, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
10.11.6 (El Capitan)
A DESCRIPTION OF THE PROBLEM :
Launching a Java application should not automatically select the high-performance GPU under OS X.
The problem is observable under 8u112 and 9ea-b142.
Related report is JDK-8041900 which does not seem fixed.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Start jvisualvm
2. Note that the system switches to the discrete GPU (can observe using gfxStatus or by starting Activity Monitor and looking at Energy->Graphics Card)
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The integrated GPU should be used
ACTUAL -
The high-performance GPU is used.
REPRODUCIBILITY :
This bug can be reproduced always.