OpenJDK 11 with cgroups v2 in OKD 4.9 #1002
-
The switch to cgroup v2 is a huge problem for all using older JDK's cause they depend on the cgroups v1 subsystem. Is there a chance to install OKD 4.9 with cgroups v1? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 3 replies
-
Yes, add |
Beta Was this translation helpful? Give feedback.
-
@vrutkovs Thx for quick reponse! (as always!). Can this be done via
|
Beta Was this translation helpful? Give feedback.
-
It works! Brilliant! |
Beta Was this translation helpful? Give feedback.
-
For reference: https://bugs.openjdk.java.net/browse/JDK-8230305 |
Beta Was this translation helpful? Give feedback.
-
I experienced a huge increase of memory usage. This starts with memory consumption increase in openshift-logging > 1.2Gi. JBoss EAP > 500Mi and in our maven builds > 2Gi. I work with OCP 4.9 and OKD 4.9 and run all apps and services in both clusters the same way. After switching to OKD 4.9 a lot of Java services, happy in OCP 4.9, fail in OKD 4.9. Yes I saw this referenced Ticket and realized this is fixed in 15 and this is no option for us. I'm sure many people who run < JDK 15 will have problems vith JVMs in OKD 4.9. You stated in Road to OKD 4.9 that you have to add a note that cgroupsv2 is enabled on new installs. To be honest I think this really should be a warning! |
Beta Was this translation helpful? Give feedback.
-
The change to cgroup v2 may effect your running containers. Please check your containers (e.g. Java JDK before version 15) before you upgrade to OKD 4.9. If you're not sure please consider using cgroup v1 by adding a day-1 kernel argument with:
|
Beta Was this translation helpful? Give feedback.
-
However... just let the people know... there might be a good reason why OCP is NOT switching to cgroup v2 ;-) |
Beta Was this translation helpful? Give feedback.
@vrutkovs Thx for quick reponse! (as always!).
Can this be done via
Adding day-1 kernel arguments
like....