< prev index next >
test/hotspot/jtreg/containers/docker/PrintContainerInfo.java
Print this page
@ rev 56576 : 8230305: Cgroups v2: Container awareness
| Summary: Implement Cgroups v2 container awareness in hotspot
~ Reviewed-by: bobv
*** 27,34 ****
--- 27,39 ----
public static void main(String[] args) {
System.out.println("PrintContainerInfo: Entering");
WhiteBox wb = WhiteBox.getWhiteBox();
+ String cgVersion = wb.containerType();
+ if (cgVersion != null) { // will be null for product builds
+ System.out.println("Detected CGroups version is: " + cgVersion);
+ }
+
wb.printOsInfo();
}
}
< prev index next >