一次OOM分析的过程

本文记录了一次Java OutOfMemory (OOM)问题的分析过程,主要关注Java堆空间使用情况。通过jinfo、jstat、jmap等工具发现HttpSnapshot、DnsSnapshot和SnapshotResult类的对象数量过多,占据了大量内存。解决办法包括调整JVM初始和最大内存设置(-xms -xmx),以及深入调查大量对象产生的原因。
摘要由CSDN通过智能技术生成

1. 现象 Java heap space

 通过系统日志查询如下:

 

2013-04-11 16:53:54,569 [ActiveMQ Transport: tcp:///202.111.10.183:8006] WARN  org.apache.activemq.transport.failover.FailoverTransport - Transport (/202.111.10.183:8006) failed to tcp://202.111.10.183:8006 , attempting to automatically reconnect due to: java.io.EOFException
2013-04-11 16:54:39,565 [ActiveMQ Task-39] INFO  org.apache.activemq.transport.failover.FailoverTransport - Successfully reconnected to tcp://202.111.10.183:8006
Exception in thread "taskExecutor-400" java.lang.OutOfMemoryError: Java heap space
Exception in thread "taskExecutor-401" java.lang.OutOfMemoryError: Java heap space
Exception in thread "taskExecutor-402" java.lang.OutOfMemoryError: Java heap space
Exception in thread "taskExecutor-403" java.lang.OutOfMemoryError: Java heap space
Exception in thread "taskExecutor-404" java.lang.OutOfMemoryError: Java heap space
2013-04-11 17:07:35,627 [ActiveMQ Session Task-9506] WARN  org.springframework.jms.listener.SimpleMessageListenerContainer - Execution of JMS message listener failed, and no ErrorHandler has been set.
java.lang.OutOfMemoryError: Java heap space
2013-04-11 17:07:45,947 [ActiveMQ Transport: tcp:///202.111.10.183:8006] WARN  org.apache.activemq.transport.failover.FailoverTransport - Transport (/202.111.10.183:8006) failed to tcp://202.111.10.183:8006 , attempting to automatically reconnect due to: java.io.EOFException
2013-04-11 17:08:53,055 [ActiveMQ Task-42] INFO  org.apache.activemq.transport.failover.FailoverTransport - Successfully reconnected to tcp://202.111.10.183:8006
2013-04-11 17:14:30,307 [ActiveMQ Session Task-9509] WARN  org.springframework.jms.listener.SimpleMessageListenerContainer - Execution of JMS message listener failed, and no ErrorHandler has been set.
java.lang.OutOfMemoryError: Java heap space
2013-04-11 17:14:40,623 [ActiveMQ Transport: tcp:///202.111.10.183:8006] WARN  org.apache.activemq.transport.failover.FailoverTransport - Transport (/202.111.10.183:8006) failed to tcp://202.111.10.183:8006 , attempting to automatically reconnect due to: java.io.EOFException
2013-04-11 17:14:50,943 [ActiveMQ Task-44] INFO  org.apache.activemq.transport.failover.FailoverTransport - Successfully reconnected to tcp://202.111.10.183:8006
Exception in thread "taskExecutor-407" java.lang.OutOfMemoryError: Java heap space
Exception in thread "taskExecutor-408" java.lang.OutOfMemoryError: Java heap space
Exception in thread "taskExecutor-409" java.lang.OutOfMemoryError: Java heap space
Exception in thread "taskExecutor-411" java.lang.OutOfMemoryError: Java heap space
Exception in thread "taskExecutor-344" java.lang.OutOfMemoryError: Java heap space
Exception in thread "taskExecutor-412" java.lang.OutOfMemoryError: Java heap space
Exception in thread "taskExecutor-413" java.lang.OutOfMemoryError: Java heap space
Excep
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值