gpt4 book ai didi

java - jvm 崩溃.. 可用内存不足? (1.6)

转载 作者:搜寻专家 更新时间:2023-11-01 03:54:13 29 4
gpt4 key购买 nike

我从崩溃日志中得到这个..看起来空闲内存非常低(1020k),是内存太少造成的吗?

我有 10g RAM,我的 GC 设置是:-Xmx5g -XX:NewRatio=3 -XX:CMSInitiatingOccupancyFraction=70 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+UseAdaptiveSizePolicy -XX:MaxGCPauseMillis=700.

有人可以给我一些提示吗?谢谢!

# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f220198ce10, pid=26470, tid=1154627904
#
# JRE version: 6.0_24-b07
# Java VM: Java HotSpot(TM) 64-Bit Server VM (19.1-b02 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# J com.twitter.typeahead.server.topic.TopicTypeAheadController$2.onSuccess(Lcom/twitter/typeahead/common/MetastoreResult;)V
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#

Current thread (0x00007f21f2ce0800): JavaThread "New I/O client worker #1-18" [_thread_in_Java, id=26628, stack(0x0000000044c23000,0x0000000044d24000)]


siginfo:si_signo=SIGSEGV: si_errno=0, si_code=2 (SEGV_ACCERR), si_addr=0x00007f2200e4616a

Registers:
RAX=0x00000006bae61950, RBX=0x00000007fafe2be0, RCX=0x0000000000000000, RDX=0x00000006bbe2d580
RSP=0x0000000044d22180, RBP=0x00000006bae61950, RSI=0x00000006bae61950, RDI=0x00007f220198ccf0
R8 =0x00000000d77c5ab0, R9 =0x00000006bbd0a190, R10=0x00000000035df16a, R11=0x00007f21fd867000
R12=0x0000000000000000, R13=0x0000000044d22180, R14=0x0000000000000001, R15=0x00007f21f2ce0800
RIP=0x00007f220198ce10, EFL=0x0000000000010207, CSGSFS=0x0000000000000033, ERR=0x0000000000000006
TRAPNO=0x000000000000000e

Register to memory mapping:

RAX=0x00000006bae61950

[error occurred during error reporting (printing registers, top of stack, instructions near pc), id 0xb]

Stack: [0x0000000044c23000,0x0000000044d24000], sp=0x0000000044d22180, free space=1020k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)

最佳答案

我不认为你的内存不足。这是 JVM 中的段错误错误。

尝试阅读这些 stackoverflow 帖子。他们应该为您指明正确的方向:

Java VM: reproducable SIGSEGV on both 1.6.0_17 and 1.6.0_18, how to report?

how to debug SIGSEGV in jvm GCTaskThread

好吧,除非 JVM 有一个错误,它会遇到段错误或缓冲区溢出而没有首先崩溃,因为剩余的堆栈内存不足,请尝试将 -Xss(每个线程堆栈大小)设置为更高的值。

关于java - jvm 崩溃.. 可用内存不足? (1.6),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13573430/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com