日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

java.lang.OutOfMemoryError: GC overhead limit exceeded

發布時間:2023/12/10 编程问答 38 豆豆
生活随笔 收集整理的這篇文章主要介紹了 java.lang.OutOfMemoryError: GC overhead limit exceeded 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

? ? ?今天現場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的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。