Skip to content

OOM了 #733

Open
Open
OOM了#733
@starriesWEB

Description

@starriesWEB
JAVA_OPTS="$JAVA_OPTS -Xmx4G"
JAVA_OPTS="$JAVA_OPTS -Xms4G"

用户很少,就几十个

2025-04-02 10:05:57,198 WARN  [pool-3-thread-8] persistence.MemoryMessagesStore (MemoryMessagesStore.java:2644) - Get user info, user 0 not exist
2025-04-02 10:06:09,335 WARN  [pool-3-thread-11] persistence.MemoryMessagesStore (MemoryMessagesStore.java:2644) - Get user info, user null not exist
2025-04-02 10:06:12,539 WARN  [pool-3-thread-8] persistence.MemoryMessagesStore (MemoryMessagesStore.java:2644) - Get user info, user null not exist
2025-04-02 10:06:27,349 ERROR [pool-6-thread-1] remote.RequestInfo (RequestInfo.java:38) - Request timeout. fromUser 0, cliendId null, requestId 3805301, request MS
2025-04-02 10:06:27,355 WARN  [nioEventLoopGroup-5-8] channel.DefaultChannelPipeline (DefaultChannelPipeline.java:1152) - An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception.
java.lang.OutOfMemoryError: Java heap space
	at java.util.Arrays.copyOf(Arrays.java:3332) ~[?:1.8.0_371]
	at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:124) ~[?:1.8.0_371]
	at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:596) ~[?:1.8.0_371]
	at java.lang.StringBuilder.append(StringBuilder.java:196) ~[?:1.8.0_371]
	at com.google.gson.stream.JsonReader.nextQuotedValue(JsonReader.java:1027) ~[gson-2.8.9.jar:?]
	at com.google.gson.stream.JsonReader.nextString(JsonReader.java:814) ~[gson-2.8.9.jar:?]
	at com.google.gson.internal.bind.TypeAdapters$15.read(TypeAdapters.java:380) ~[gson-2.8.9.jar:?]
	at com.google.gson.internal.bind.TypeAdapters$15.read(TypeAdapters.java:368) ~[gson-2.8.9.jar:?]
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:131) ~[gson-2.8.9.jar:?]
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:222) ~[gson-2.8.9.jar:?]
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:131) ~[gson-2.8.9.jar:?]
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:222) ~[gson-2.8.9.jar:?]
	at com.google.gson.Gson.fromJson(Gson.java:963) ~[gson-2.8.9.jar:?]
	at com.google.gson.Gson.fromJson(Gson.java:928) ~[gson-2.8.9.jar:?]
	at com.google.gson.Gson.fromJson(Gson.java:877) ~[gson-2.8.9.jar:?]
	at com.google.gson.Gson.fromJson(Gson.java:848) ~[gson-2.8.9.jar:?]
	at com.xiaoleilu.loServer.action.Action.getRequestBody(Action.java:157) ~[moquette-broker-1.3.1.jar:?]
	at com.xiaoleilu.loServer.action.admin.SendMessageAction.action(SendMessageAction.java:41) ~[moquette-broker-1.3.1.jar:?]
	at com.xiaoleilu.loServer.action.Action.doAction(Action.java:131) ~[moquette-broker-1.3.1.jar:?]
	at com.xiaoleilu.loServer.handler.ActionHandler.doAction(ActionHandler.java:152) ~[moquette-broker-1.3.1.jar:?]
	at com.xiaoleilu.loServer.handler.ActionHandler.channelRead0(ActionHandler.java:48) ~[moquette-broker-1.3.1.jar:?]
	at com.xiaoleilu.loServer.handler.ActionHandler.channelRead0(ActionHandler.java:28) ~[moquette-broker-1.3.1.jar:?]
	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final]
	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) ~[netty-codec-4.1.68.Final.jar:4.1.68.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final]
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final]
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) ~[netty-transport-4.1.68.Final.jar:4.1.68.Final]
	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:324) ~[netty-codec-4.1.68.Final.jar:4.1.68.Final]
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:296) ~[netty-codec-4.1.68.Final.jar:4.1.68.Final]
2025-04-02 10:06:27,356 WARN  [nioEventLoopGroup-5-8] handler.ActionHandler (ActionHandler.java:73) - Java heap space

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions