growing region of the old age, as the objects of some survivor or Eden areas may be promoted to the old age.Figure 5.6 G1 's new Generation GCAfter the new generation GC occurs, if the Printgcdetails option is turned on, you can get a GC log similar to the following (only partial logs are given here, full logs and their analysis are shown in the 5th. 4.6):0.336:
Today began the actual combat Java Virtual Machine three: "Virtual machine working mode."Total of 5 Series
One of the practical Java virtual machines" heap overflow processing "
Actual combat Java Virtual Machine Two" virtual machine working mode "
Real-time Java Virtual Machine three "G1 of th
Java. lang. OutOfMemoryError: GC overhead limit exceeded, limitexceeded
The reason for writing it down is that you don't want to find it everywhere next time. Many times the error message is the same, but there are many causes.
I tested the adoption of a virtual machine startup:-XX:-UseGCOverheadLimit
Write down the original article link and mark it as "thank you;
Http://www.cnblogs.com/hucn/p/3572384
method. The procedure is as follows:
(1) Open eclipse and create a Java file timebook. Java in the com. gc. action package to simulate the business logic of Attendance Review in actual business.
(2) When writing logs in a program, you must write the log-recorded code in each business logic method. The example code of
1. log4j– Most popular Java log componentsLog4j is a Java-based open source log component, log4j is very powerful, we can output log information to the console, file, user interface, can also output to the operating system's event logger and some system resident process. It
1. log4j– Most popular Java log componentsLog4j is a Java-based open source log component, log4j is very powerful, we can output log information to the console, file, user interface, can also output to the operating system's event logger and some system resident process. It
referenceextends t> r = Reallypoll (); if (r! = null) return R; for (;;) {lock.wait (timeout); r = Reallypoll ();...... }} That is, in the execution of a thread, the Monitor of this object is first obtained with synchronized (corresponding tolocked ); When executing to lock.wait (timeout), the thread discards the ownership of Monitor and enters the "Wait Set" queue (corresponding to theWaiting on )。 5) from the stack information, is the remote references to remote objects is being cleaned u
following code implementation: Static Private class Lock {};p rivate lock lock = new Lock ();p ublic referenceextends t> r = Reallypoll (); if (r! = null) return R; for (;;) {lock.wait (timeout); r = Reallypoll ();...... }} That is, in the execution of a thread, the Monitor of this object is first obtained with synchronized (corresponding tolocked ); When executing to lock.wait (timeout), the thread discards the ownership of Monitor and enters the "Wait Set" queue (corresponding to theWaiti
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.