adoptium / adoptium/aqa-tests

TestMemoryAwareness.java makes hotspot_jre test fails on JDK8 Hotspot xLinux

Open
#3,571 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
155
Forks
346
Avg merge
2d 9h
Merged PRs (30d)
36

Description

**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](https://user-images.githubusercontent.com/38229679/163146820-0e99a640-d133-4d18-bf02-e866a94a35b1.png)

**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
```

Contributor guide

Open the contributing guide

Research direction

Start by locating TestMemoryAwareness.java in the hotspot_jre test run and reproduce the failure with make _hotspot_jre_1 on JDK8 Hotspot xLinux. Compare the container-OOM failure with the reported -Xmx128M workaround and inspect the related JDK-8224506 behavior. Done means hotspot_jre_1 passes without the memory-related failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.