Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jdk18 [windows64]: test failed [Unexpected exit from test [exit code: 1] with There is insufficient memory for the Java Runtime Environment to continue #3488

Closed
sophia-guo opened this issue Mar 23, 2022 · 7 comments

Comments

@sophia-guo
Copy link
Contributor

sophia-guo commented Mar 23, 2022

java/util/regex/NegativeArraySize.java

16:56:48  ACTION: testng -- Failed. Unexpected exit from test [exit code: 1]
16:56:48  REASON: User specified action: run testng/othervm -Xms5G -Xmx5G NegativeArraySize 
16:56:48  TIME:   0.078 seconds
16:56:48  messages:
16:56:48  command: testng -Xms5G -Xmx5G NegativeArraySize
16:56:48  reason: User specified action: run testng/othervm -Xms5G -Xmx5G NegativeArraySize 
16:56:48  Mode: othervm [/othervm specified]
16:56:48  elapsed time (seconds): 0.078
16:56:48  configuration:
16:56:48  STDOUT:
16:56:48  #
16:56:48  # There is insufficient memory for the Java Runtime Environment to continue.
16:56:48  # Native memory allocation (mmap) failed to map 5368709120 bytes for G1 virtual space
16:56:48  # An error report file with more information is saved as:
16:56:48  # E:\workspace\Test_openjdk18_hs_sanity.openjdk_x86-64_windows\aqa-tests\TKG\output_16479812973657\jdk_util_0\work\scratch\1\hs_err_pid17752.log
16:56:48  STDERR:
16:56:48  OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000006c0000000, 5368709120, 0) failed; error='The paging file is too small for this operation to complete' (DOS error/errno=1455)

https://ci.adoptopenjdk.net/job/Test_openjdk18_hs_sanity.openjdk_x86-64_windows/85/consoleFull

Tests has been updated to @requires os.maxMemory >= 5g & vm.bits == 64

https://bugs.openjdk.java.net/browse/JDK-8273169

@sophia-guo
Copy link
Contributor Author

Same error with java/nio/channels/FileChannel/LargeGatheringWrite.java.LargeGatheringWrite

https://ci.adoptopenjdk.net/job/Test_openjdk18_hs_extended.openjdk_x86-64_windows_testList_2/27/

Stacktrace
Unexpected exit from test [exit code: 1]    
Standard Output
Seed from RandomFactory = 5106480740934277067L
Writing 5368709122 bytes of data...
Wrote 5368709122 bytes
Total of 5368709122 bytes written
Checking length 1073741824
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 1308622848 bytes for G1 virtual space
# An error report file with more information is saved as:
# E:\workspace\Test_openjdk18_hs_extended.openjdk_x86-64_windows_testList_2\aqa-tests\TKG\output_16479892684575\jdk_nio_0\work\scratch\0\hs_err_pid29116.log

@sophia-guo sophia-guo changed the title jdk18 [windows64]: java/util/regex/NegativeArraySize.java failed [Unexpected exit from test [exit code: 1] jdk18 [windows64]: test failed [Unexpected exit from test [exit code: 1] with There is insufficient memory for the Java Runtime Environment to continue Mar 23, 2022
@jiekang
Copy link
Contributor

jiekang commented Mar 23, 2022

The console log mentions

16:32:57 Total memory (bytes) : 134217728
16:32:57 Free memory (bytes) : 131147576

That's less than 1 gb? But then not sure why the test is running

@sophia-guo
Copy link
Contributor Author

Passed on https://ci.adoptopenjdk.net/view/Test_openjdk/job/Test_openjdk18_hs_sanity.openjdk_x86-64_windows/86/.

The console log is misleading, which is actually the info of java process org.openj9.envInfo.EnvDetector

@sophia-guo
Copy link
Contributor Author

Issue opened adoptium/TKG#302

@sophia-guo
Copy link
Contributor Author

sophia-guo commented Mar 24, 2022

Reran on same machine https://ci.adoptopenjdk.net/view/Test_grinder/job/Grinder/3935/console

https://ci.adoptopenjdk.net/view/Test_grinder/job/Grinder/3936/console

Passed. And update the console output to printout proper information

@sophia-guo
Copy link
Contributor Author

Close it as can not be reproduced. Guess the machine's in corner unhealthy status.

@sophia-guo
Copy link
Contributor Author

Dup of #3818

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants