Troubleshoot Java.lang.OutOfMemoryError:GC overhead limit exceeded

Source: Internet
Author: User

Help customers troubleshoot Java.lang.OutOfMemoryError:GC overhead limit exceeded error logging:

Specific website:

https://support.oracle.com/epmos/faces/documentdisplay?_afrloop=269134815562958&id=1554559.1& displayindex=2&_afrwindowmode=0&_adf.ctrl-state=2t8bqbn6s_165

Document id:1554559.1

Describe:

Report "Java.lang.OutOfMemoryError:GC Overhead limit Exceeded" exception when running WebLogic 10.3 and later in Sun JDK 1.6 with all remediation packages

The "Java.lang.OutOfMemoryError:GC overhead limit Exceeded" message indicates that the garbage collector has spent too much time for some reason. If you spend too much time on garbage collection, the parallel collector throws OutOfMemoryError: If you spend more than 98% of the total time on garbage collection, or if the heap recovered by garbage collection is less than 2%, OutOfMemoryError will be thrown.

The ability to throw a "GC overhead limit Exceeded" message is designed to prevent the application from working for a long time because the heap is too small.

Workaround:

You can avoid the above "Java.lang.OutOfMemoryError:GC overhead limit exceeded" exception by adding the following parameters to the JVM's startup script to disable the GC cost throttling feature in Sun JDK 1.6:

-xx:-usegcoverheadlimit

Troubleshoot Java.lang.OutOfMemoryError:GC overhead limit exceeded

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.