萝卜白菜。 2021-05-31 08:57 采纳率: 100%
浏览 138
已结题

TongWeb进程崩溃bin目录下生成hs开头文件

hs******文件内容如下:

#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 33554432 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=
# This output file may be truncated or incomplete.
#
#  Out of Memory Error (os_linux.cpp:2737), pid=28680, tid=28681
#
# JRE version:  (11.0.9+7) (build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (11.0.9+7-LTS, mixed mode, sharing, tiered, compressed oops, g1 gc, linux-aarch64)
# Core dump will be written. Default location: Core dumps may be processed with "/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t e %P %I %h" (or dumping to /opt/TW61711/bin/core.28680)
#

---------------  S U M M A R Y ------------

Command Line: -Denv.class.path=.:/usr/java/jdk-11.0.9/lib/tools.jar:/usr/java/jdk-11.0.9/lib/dt.jar -Dapplication.home=/usr/java/jdk-11.0.9 -Xms8m -Djdk.module.main=jdk.hotspot.agent jdk.hotspot.agent/sun.jvm.hotspot.SALauncher jmap --heap --pid 26531

Host: AArch64, 8 cores, 31G, Red Hat Enterprise Linux Server release 7.6 (Maipo)
Time: Mon Jan  4 16:33:33 2021 CST elapsed time: 0.005844 seconds (0d 0h 0m 0s)

---------------  T H R E A D  ---------------

Current thread (0x0000ffff90022000):  JavaThread "Unknown thread" [_thread_in_vm, id=28681, stack(0x0000ffff94670000,0x0000ffff94870000)]

Stack: [0x0000ffff94670000,0x0000ffff94870000],  sp=0x0000ffff9486de40,  free space=2039k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0xc4c5e8]  VMError::report_and_die(int, char const*, char const*, std::__va_list, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x2d0
V  [libjvm.so+0xc4d108]  VMError::report_and_die(Thread*, char const*, int, unsigned long, VMErrorType, char const*, std::__va_list)+0x50
V  [libjvm.so+0x52110c]  report_vm_out_of_memory(char const*, int, unsigned long, VMErrorType, char const*, ...)+0xac
V  [libjvm.so+0xa4d730]  os::pd_commit_memory(char*, unsigned long, bool)+0x128
V  [libjvm.so+0xa451ec]  os::commit_memory(char*, unsigned long, bool)+0x1c
V  [libjvm.so+0x5e1420]  G1CMMarkStack::resize(unsigned long)+0x68
V  [libjvm.so+0x5e4698]  G1ConcurrentMark::G1ConcurrentMark(G1CollectedHeap*, G1RegionToSpaceMapper*, G1RegionToSpaceMapper*)+0x548
V  [libjvm.so+0x5d64f8]  G1CollectedHeap::initialize()+0x538
V  [libjvm.so+0xc0a67c]  Universe::initialize_heap()+0x4c
V  [libjvm.so+0xc0a948]  universe_init()+0x40
V  [libjvm.so+0x6a8e0c]  init_globals()+0x54
V  [libjvm.so+0xbe9e1c]  Threads::create_vm(JavaVMInitArgs*, bool*)+0x2f4
V  [libjvm.so+0x757a28]  JNI_CreateJavaVM+0x80
C  [libjli.so+0x4908]  JavaMain+0x80
C  [libpthread.so.0+0x7c48]  start_thread+0xb4

 

  • 写回答

1条回答 默认 最新

  • 萝卜白菜。 2021-05-31 09:05
    关注

    这个问题主要是因为机器的可用物理内存太少,而-Xms  -Xmx设置的堆内存过大引起的。  通过free -m 检查可用的物理内存,并将-Xmx 值设小即可。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 已结题 (查看结题原因) 1月16日

悬赏问题

  • ¥15 扩散模型sd.webui使用时报错“Nonetype”
  • ¥15 stm32流水灯+呼吸灯+外部中断按键
  • ¥15 将二维数组,按照假设的规定,如0/1/0 == "4",把对应列位置写成一个字符并打印输出该字符
  • ¥15 NX MCD仿真与博途通讯不了啥情况
  • ¥15 win11家庭中文版安装docker遇到Hyper-V启用失败解决办法整理
  • ¥15 gradio的web端页面格式不对的问题
  • ¥15 求大家看看Nonce如何配置
  • ¥15 Matlab怎么求解含参的二重积分?
  • ¥15 苹果手机突然连不上wifi了?
  • ¥15 cgictest.cgi文件无法访问