-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
Due to cgroupsv2 enabled by default in OpenShift 4.14, the automatic heap size calculation seems to be broken in the latest RH-SSO image at this time.
The issue is caused by /opt/jboss/container/java/jvm/container-limits script which is called during container startup. It's already fixed in cct_module 0.45.6.
The same issue in EAP based products has been fixed on JBEAP-26130 and RHPAM-4777. So if possible, please update cct_module from 0.45.5 to 0.45.6 in the next RH-SSO container release.
Steps to reproduce
Expected: -Xms 128m -Xmx512m
Actual: -Xms1303m -Xmx1303m
$ oc version Client Version: 4.14.4 Kustomize Version: v5.0.1 Server Version: 4.14.6 Kubernetes Version: v1.27.8+4fab27b $ oc new-project sso $ oc create -f https://raw.githubusercontent.com/jboss-container-images/redhat-sso-7-openshift-image/sso76-dev/templates/sso76-image-stream.json $ oc create -f https://raw.githubusercontent.com/jboss-container-images/redhat-sso-7-openshift-image/sso76-dev/templates/reencrypt/ocp-4.x/sso76-ocp4-x509-https.json $ oc new-app --template=sso76-ocp4-x509-https $ oc get pod NAME READY STATUS RESTARTS AGE sso-1-deploy 0/1 Completed 0 5m2s sso-1-f6tjx 1/1 Running 0 5m1s $ oc exec sso-1-f6tjx -- ls /root/buildinfo Dockerfile-rh-sso-7-sso76-openshift-rhel8-7.6-38 <<<----- the latest image is deployed Dockerfile-ubi8-minimal-8.9-1029 content_manifests $ oc exec sso-1-f6tjx -- jcmd 1209 /opt/eap/jboss-modules.jar -javaagent:/usr/share/java/jolokia-jvm-agent/jolokia-jvm.jar=config=/opt/jboss/container/jolokia/etc/jolokia.properties -mp /opt/eap/modules org.jboss.as.standalone -Djboss.home.dir=/opt/eap -Djboss.server.base.dir=/opt/eap/standalone -c standalone-openshift.xml -b 10.131.0.46 -bprivate 10.131.0.46 -Djboss.node.name=sso-1-f6tjx 2991 jdk.jcmd/sun.tools.jcmd.JCmd $ oc exec sso-1-f6tjx -- jcmd 1209 VM.flags 1209: -XX:AdaptiveSizePolicyWeight=90 -XX:CICompilerCount=3 -XX:+ExitOnOutOfMemoryError -XX:GCTimeRatio=4 **-XX:InitialHeapSize=1367343104** -XX:MaxHeapFreeRatio=20 **-XX:MaxHeapSize=1367343104** -XX:MaxNewSize=455606272 -XX:MetaspaceSize=100663296 -XX:MinHeapDeltaBytes=524288 -XX:MinHeapFreeRatio=10 -XX:NewSize=455606272 -XX:NonNMethodCodeHeapSize=5830732 -XX:NonProfiledCodeHeapSize=122913754 -XX:OldSize=911736832 -XX:ProfiledCodeHeapSize=122913754 -XX:ReservedCodeCacheSize=251658240 -XX:+SegmentedCodeCache -XX:+UseCompressedClassPointers -XX:+UseCompressedOops -XX:+UseFastUnorderedTimeStamps -XX:+UseParallelOldGC