adoptium / aqa-tests

Home of test infrastructure for Adoptium builds
https://adoptium.net/aqavit
Apache License 2.0
131 stars 310 forks source link

TestMemoryAwareness.java makes hotspot_jre test fails on JDK8 Hotspot xLinux #3571

Open ChangLu0607 opened 2 years ago

ChangLu0607 commented 2 years ago

Describe the bug test case TestMemoryAwareness.java fails because of created container OOM

To Reproduce make _hotspot_jre_1

Expected behavior test case pass

Screenshots image

Additional context possible related issue in JDK-13: https://bugs.openjdk.java.net/browse/JDK-8224506 verified that set -Xmx to 128M is also a work around:

===============================================
Running test hotspot_jre_1 ...
===============================================
hotspot_jre_1 Start Time: Wed Apr 13 08:42:05 2022 Epoch Time (ms): 1649839325412
Nothing to be done for setup.
variation: Mode650
JVM_OPTIONS: -Xmx128M
{ itercnt=1; \
mkdir -p "/home/luchang/AQAvit/aqa-tests-0.9.0/TKG/../TKG/output_1649839324437/hotspot_jre_1"; \
cd "/home/luchang/AQAvit/aqa-tests-0.9.0/TKG/../TKG/output_1649839324437/hotspot_jre_1"; \
"/home/luchang/JVM/snapshot/newest/openjdk-1.8.0/bin/java" -Xmx512m -jar "/home/luchang/AQAvit/aqa-tests-0.9.0/test-results/openjdk/jtreg/lib/jtreg.jar" \
-agentvm -a -ea -esa -v:fail,error,time,nopass -retain:fail,error,*.dmp,javacore.*,heapdump.*,*.trc -ignore:quiet -timeoutFactor:8 -xml:verify -concurrency:48   -vmoptions:"-Xmx512m -Xmx128M " \
-w ""/home/luchang/AQAvit/aqa-tests-0.9.0/TKG/../TKG/output_1649839324437/hotspot_jre_1"/work" \
-r "/home/luchang/AQAvit/aqa-tests-0.9.0/test-results/openjdk/report" \
-jdk:"/home/luchang/JVM/snapshot/newest/openjdk-1.8.0" \
-exclude:"/home/luchang/AQAvit/aqa-tests-0.9.0/TKG/../openjdk/openjdk-jdk/hotspot/test/ProblemList.txt" \
-exclude:"/home/luchang/AQAvit/aqa-tests-0.9.0/test-results/openjdk/excludes/ProblemList_openjdk8.txt" \
"/home/luchang/AQAvit/aqa-tests-0.9.0/TKG/../openjdk/openjdk-jdk/hotspot/test:jre"; \
if [ $? -eq 0 ] ; then echo ""; echo "hotspot_jre_1""_PASSED"; echo ""; cd /home/luchang/AQAvit/aqa-tests-0.9.0/TKG/..;  else echo ""; echo "hotspot_jre_1""_FAILED"; echo ""; fi; } 2>&1 | tee -a "/home/luchang/AQAvit/aqa-tests-0.9.0/TKG/../TKG/output_1649839324437/TestTargetResult";
Directory "/home/luchang/AQAvit/aqa-tests-0.9.0/TKG/../TKG/output_1649839324437/hotspot_jre_1/work" not found: creating
XML output with verification to /home/luchang/AQAvit/aqa-tests-0.9.0/TKG/output_1649839324437/hotspot_jre_1/work
Test results: passed: 698
Report written to /home/luchang/AQAvit/aqa-tests-0.9.0/test-results/openjdk/report/html/report.html
Results written to /home/luchang/AQAvit/aqa-tests-0.9.0/TKG/output_1649839324437/hotspot_jre_1/work

hotspot_jre_1_PASSED
sophia-guo commented 2 years ago

Looks like a test or environment setup issue. In Adoptium the default set up is -Xmx512m and tests passed. https://ci.adoptopenjdk.net/job/Test_openjdk8_hs_extended.openjdk_x86-64_linux_testList_2/37/console

sophia-guo commented 2 years ago

The test also passed with in recent run with bisheng jdk in adoptium jenkins https://ci.adoptopenjdk.net/job/Test_openjdk8_bisheng_extended.openjdk_x86-64_linux_testList_2/28/testReport/runtime_containers_docker_TestMemoryAwareness/