wuqun 发表于 2024-4-17 10:53:30

内存溢出问题

#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 352321536 bytes for committing reserved memory.
# Possible reasons:
#   The system is out of physical RAM or swap space
#   The process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap
# Possible solutions:
#   Reduce memory load on the system
#   Increase physical memory or swap space
#   Check if swap backing store is full
#   Decrease Java heap size (-Xmx/-Xms)
#   Decrease number of Java threads
#   Decrease Java thread stack sizes (-Xss)
#   Set larger code cache with -XX:ReservedCodeCacheSize=
#   JVM is running with Zero Based Compressed Oops mode in which the Java heap is
#   placed in the first 32GB address space. The Java Heap base address is the
#   maximum limit for the native heap growth. Please use -XX:HeapBaseMinAddress
#   to set the Java Heap base and to place the Java Heap above 32GB virtual address.
# This output file may be truncated or incomplete.
#
#Out of Memory Error (os_linux.cpp:2737), pid=2473, tid=2585
#
# JRE version: Java(TM) SE Runtime Environment 18.9 (11.0.10+8) (build 11.0.10+8-LTS-162)
# Java VM: Java HotSpot(TM) 64-Bit Server VM 18.9 (11.0.10+8-LTS-162, mixed mode, tiered, compressed oops, g1 gc, linux-aarch64)
# Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h" (or dumping to /home/file1/apps/o2server/core.2473)

启蒙星 发表于 2024-4-18 16:11:26

平台启动脚本(start_xxxx.sh)尾部可以设置最大内存,可以调整下,最大不要超过操作系统可用内存的一半,我看你有32g内存,最大内存可以改为8g先试试

wuqun 发表于 2024-4-18 18:22:32

设置了8g也报错了

启蒙星 发表于 2024-4-19 09:28:08

那需要检查环境来具体定位了,这需要联系商务
页: [1]
查看完整版本: 内存溢出问题