|
本帖最后由 teymon 于 2022-6-2 10:56 编辑
内存去哪了呢?堆栈内存没有溢出,没有FullGC ,不是堆栈内存溢出,而是物理内存被占满了, 16G内存只启动了o2Server服务
怀疑其他占进程占用内存,当杀掉o2server进程后,内存立即释放干净了。
所以怀疑o2server有内存泄露,占用了直接物理内存,没有使用jvm的堆栈内存。
然而,设置XX:MaxDirectMemorySize=3g 并没有任何效果,内存还是会被占满。
特别是使用应用管理 的导入导出流程应用功能和 备份数据,导出导入功能时,有时候导一半,服务挂了,内存不够。
怀疑点:java11的 js解析引擎大量占用物理内存不释放,没找到有效解决办法。
请管理员大佬帮忙协调运维大拿瞧瞧,非常感谢!
total used free shared buff/cache available
Mem: 14951 12818 1018 735 1115 45
S0C S1C S0U S1U EC EU OC OU MC MU CCSC CCSU YGC YGCT FGC FGCT CGC CGCT GCT
0.0 18432.0 0.0 18432.0 2269184.0 1632256.0 1906688.0 1425768.0 986368.0 607874.6 115776.0 60124.9 1543 184.785 0 0.000 808 94.181 278.966
/jvm/arm_java11/bin/java -Dnashorn.args=--no-deprecation-warning --add-exports jdk.scripting.nashorn/jdk.nashorn.internal.runtime=ALL-UNNAMED --add-exports jdk.scripting.nashorn/jdk.nashorn.internal.runtime.arrays=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED -javaagent:/data/oAserver/console.jar -server -Djava.awt.headless=true -Dlog4j2.formatMsgNoLookups=true -Xms4g -Xmx4g -XX:MaxDirectMemorySize=3g -Duser.timezone=GMT+08 -XX:+HeapDumpOnOutOfMemoryError -jar /data/oAserver/console.jar
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000716000000, 268435456, 0) failed; error='Not enough space' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 268435456 bytes for committing reserved memory.
|
|