![内存不足,无法让 Java 运行时环境继续运行 - Ubuntu 16.04.6 LTS - 4.15.0-48-generic](https://linux22.com/image/1166119/%E5%86%85%E5%AD%98%E4%B8%8D%E8%B6%B3%EF%BC%8C%E6%97%A0%E6%B3%95%E8%AE%A9%20Java%20%E8%BF%90%E8%A1%8C%E6%97%B6%E7%8E%AF%E5%A2%83%E7%BB%A7%E7%BB%AD%E8%BF%90%E8%A1%8C%20-%20Ubuntu%2016.04.6%20LTS%20-%204.15.0-48-generic.png)
请让我们知道下一个内核版本何时发布,我们的一台生产机器运行 Ubuntu 16.04.6 LTS,内核为 4.15.0-48-generic 版本,但出现故障。升级内核问题解决后,14 上也出现了同样的问题。
Error:
Error occurred during initialization of VM
Could not create ConcurrentG1RefineThread
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
# There is insufficient memory for the Java Runtime Environment to continue.
# Cannot create worker GC thread. Out of system resources.
# An error report file with more information is saved as:
# /build/jenksvc/workspace/product_eng_-keys_Ubuntu16_test/LA.UM.7.2/LINUX/android/log.log
jenksvc@SONIC:/build/jenksvc/workspace$ java -XX:+PrintFlagsFinal -version | grep -iE 'HeapSize|PermSize|ThreadStackSize'
intx CompilerThreadStackSize = 1024 {pd product} {default}
size_t ErgoHeapSizeLimit = 0 {product} {default}
size_t HeapSizePerGCThread = 87241520 {product} {default}
size_t InitialHeapSize = 2147483648 {product} {ergonomic}
size_t LargePageHeapSizeThreshold = 134217728 {product} {default}
size_t MaxHeapSize = 32178700288 {product} {ergonomic}
uintx NonNMethodCodeHeapSize = 8766152 {pd product} {ergonomic}
uintx NonProfiledCodeHeapSize = 121446044 {pd product} {ergonomic}
uintx ProfiledCodeHeapSize = 121446044 {pd product} {ergonomic}
intx ThreadStackSize = 1024 {pd product} {default}
intx VMThreadStackSize = 1024 {pd product} {default}
openjdk version "9"
OpenJDK Runtime Environment (build 9+181-android4627429)
OpenJDK 64-Bit Server VM (build 9+181-android4627429, mixed mode)