今天现场weblogic报java.lang.OutOfMemoryError: GC overhead limit exceeded,在metalink查了下,有明白解释,要设置一个JVM參数。只是因为当前weblogic内存设置为4G,所以设置參数的做法事实上并非解决这个问题之道。还是要分析weblogic 内存溢出文件,得出是哪个功能有问题:

APPLIES TO:

Oracle WebLogic Server - Version 10.3 and later
Information in this document applies to any platform.
***Checked for relevance on 22-Oct-2014***

SYMPTOMS

Issue of getting below "java.lang.OutOfMemoryError: GC overhead limit exceeded" exception in WebLogic 10.3 and above versions was reported when running with Sun JDK 1.6 with all fix packs:

Sep 30, 2010 4:13:27 PM CDT> <Error> <Kernel> <BEA-000802> <ExecuteRequest failed 
java.lang.OutOfMemoryError: GC overhead limit exceeded. 
java.lang.OutOfMemoryError: GC overhead limit exceeded 
at java.util.Arrays.copyOfRange(Arrays.java:3209) 
at java.lang.String.<init>(String.java:216) 
at java.lang.StringBuilder.toString(StringBuilder.java:430) 
at weblogic.servlet.internal.ServletRequestImpl.toString(ServletRequestImpl.java:243) 
at java.lang.String.valueOf(String.java:2827) 
Truncated. see log file for complete stacktrace

CAUSE

The "java.lang.OutOfMemoryError: GC overhead limit exceeded" message means that for some reason the garbage collector is taking an excessive amount of time.

The parallel collector will throw an OutOfMemoryError if too much time is being spent in garbage collection: if more than 98% of the total time is spent in garbage collection or less than 2% of the heap is recovered by garbage collection, an OutOfMemoryError will be thrown.

This feature of throwing  "GC overhead limit exceeded" message is designed to prevent applications from running for an extended period of time while making little or no progress because the heap is too small.

--原因是垃圾回收器因为某些原因花了非常长时间。并行的垃圾回收器抛出内存溢出的错误。要么是花了非常长时间做GC的操作,或是仅仅有2%的堆内存又来回收。GC overhead limit exceeded被设计出来,是为了阻止应用程序执行的时候。因为堆内存设置的小而没有进展。

SOLUTION

You can avoid the above "java.lang.OutOfMemoryError: GC overhead limit exceeded" exception by disabling the GC overhead limit feature in Sun JDK 1.6 by adding the following argument to the start script of JVM:

-XX:-UseGCOverheadLimit

However, please note that disabling the overhead limit only avoids getting the OutOfMemoryError at an early stage. The OutOfMemoryError is very likely to be thrown at a later stage, because it does not remove the underlying problem. You should still look into your application and JVM settings to find the cause of GC taking an excessively long time.

--避免这样的错误,在JVM中显示设置-XX:-UseGCOverheadLimit

转载于:https://www.cnblogs.com/gcczhongduan/p/5261314.html

java.lang.OutOfMemoryError: GC overhead limit exceeded相关推荐

  1. What means the error-message 'java.lang.OutOfMemoryError: GC overhead limit exceeded' in Java?

    转国内的: 一.异常如下:Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exce ...

  2. Spark读取HDFS上的Snappy压缩文件所导致的内存溢出问题 java.lang.OutOfMemoryError: GC overhead limit exceeded

    报错java.lang.OutOfMemoryError: GC overhead limit exceeded HDFS上有一些每天增长的文件,使用Snappy压缩,突然某天OOM了 1.原因: 因 ...

  3. java.lang.OutOfMemoryError: GC overhead limit exceeded解决办法

    原文地址为: java.lang.OutOfMemoryError: GC overhead limit exceeded解决办法 java.lang.OutOfMemoryError: GC ove ...

  4. spark程序运行异常:java.lang.OutOfMemoryError: GC overhead limit exceeded

    此次异常是在集群上运行的spark程序日志中发现的.由于这个异常导致sparkcontext被终止,以致于任务失败: 出现的一些原因 参考:GC overhead limit exceeded jav ...

  5. 【java.lang.OutOfMemoryError:GC overhead limit exceeded异常解决方法】

    问题描述 由于同时启动了多个项目,导致电脑蓝屏重启,重启后idea启动项目,提示系统资源不足,和Information:java: java.lang.OutOfMemoryError: GC ove ...

  6. IDEA运行工程时报错:java: java.lang.OutOfMemoryError: GC overhead limit exceeded

    背景:在运行公司的工程的时候,提示:"java: java.lang.OutOfMemoryError: GC overhead limit exceeded",从字面意思我们可以 ...

  7. java.lang.OutOfMemoryError GC overhead limit exceeded原因分析及解决方案

    最近一个上线运行良好的项目出现用户无法登录或者执行某个操作时,有卡顿现象.查看了日志,出现了大量的java.lang.OutOfMemoryError: GC overhead limit excee ...

  8. android 运行或打包出现java.lang.OutOfMemoryError: GC overhead limit exceeded

    今天用android studio 打包apk出现java.lang.OutOfMemoryError: GC overhead limit exceeded,查了一下是JDK6新添的错误类型.是发生 ...

  9. Java IDEA pom 报错java.lang.OutOfMemoryError: GC overhead limit exceeded 基本所有依赖都报错(除了JDK自带String等)解决详

    @Java IDEA pom 报错java.lang.OutOfMemoryError: GC overhead limit exceeded 基本所有依赖都报错(除了JDK自带String等)解决详 ...

最新文章

  1. ppt文本框显示缺字,信息显示不全
  2. java传值到sql decode语句_SQL之DECODE
  3. bootstrap-fileinput 使用
  4. 2019年CNCF中国云原生调查报告
  5. 安卓设备刷linux发行版,绝对精华,大牛教你在Android系统上安装linux发行版
  6. 微软将为Linux 操作系统带来TEE的支持:TEE(Trusted Execution Environment,可信执行环境)
  7. Abp框架默认表中如何添加字段
  8. 当array_filter函数的callback留空时 他会过滤掉所有键值为false的键
  9. 设计模式-第四篇之代理模式
  10. 笔记本外接2-3个屏幕
  11. 如何使用微小区一键生成可打印的物业缴费通知单
  12. 甘肃教育杂志甘肃教育杂志社甘肃教育编辑部2022年第15期目录
  13. 国外html游戏发展历史,网页游戏技术发展史 早期到当前10几年历程
  14. GitHub 热点速览 Vol.24:程序员自我增值,优雅赚零花钱
  15. 片上网络之路由器微结构
  16. epub android 乱码,ibooks打开含iframe的epub乱码
  17. 【Linux】单网卡设置双ip的方法
  18. 宝塔Linux面板的搭建
  19. SELinux策略语言--类型强制(编写TE规则)
  20. 记录每天学习的新知识:DataBinding

热门文章

  1. POJ1390 Blocks——动态规划——pku1390
  2. SRE(Simple Rule Engine) Document
  3. OPENCV-4 学习笔记
  4. PLSQL中INDEX BY TABLE 的 prior 和 next 操作学习
  5. 天猫双11凭什么达到1682亿?这些支撑技术或许可以告诉你
  6. 2017-10-03 前端日报
  7. Android CardView卡片布局 标签: 控件
  8. Provisioning Services 7.6 入门到精通系列之七:创建虚拟磁盘
  9. 使用git如何批量对文件进行rm操作
  10. microsoft project 出现不能保存为xls文件时可以按照如下方法解决