Eclipse: An internal error occurred during: & quot; Build Project & quot;. GC overhead limit exceeded, overheadexceeded

Source: Internet
Author: User
Tags gc overhead limit exceeded

Eclipse: An internal error occurred during: "Build Project". GC overhead limit exceeded, overheadexceeded

When using the Eclipse Build Project function, the following error is prompted:
An internal error occurred during: "Build Project". GC overhead limit exceeded

The search result belongs to java. lang. OutOfMemoryError.
As we all know, the JVM memory overflows. What about GC overhead limit exceed?

GC overhead limt exceed check is a policy defined by Hotspot VM 1.6. It uses GC time statistics to determine if OOM is required. An exception is thrown in advance to prevent OOM. Sun officially defines this as: "the parallel/concurrent recycler will throw an OutOfMemroyError when the GC collection time is too long. The definition is that more than 98% of the time is used for GC and less than 2% of heap memory is recycled. It is used to prevent applications from running properly due to too small memory. "

It Sounds useless... How to predict OOM? At first, this tool can only be used to Catch and release memory resources to avoid application failures. Later, it was found that this policy cannot save your application, but you can make the final struggle before the application fails, such as data storage or on-site storage (Heap Dump ).

In addition, this policy may also cause problems, such as frequent OOM when loading a large memory data.

** After a year or two, I suddenly encountered this problem, maybe I didn't pay attention to it before.
In fact, if it does not appear frequently, you don't need to pay attention to it. Just click OK. **
The following prompt is displayed:

If this problem occurs, click Yes to restart Eclipse.
If there are any unsaved changes, click No. After checking, restart Eclipse.

Related Article

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: 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.