1. Distribution of generations in the Java heap:
YOUNG: Mainly used to store new objects.
Old: Mainly stores memory objects with long life cycles in applications.
Permanent: indicates the permanent storage area of the memory, which stores
How JVM memory is setThe default Java Virtual Machine is small in size. When processing big data, Java reports an error: Java. Lang. outofmemoryerror.The JVM memory setting method. For a separate. class, you can use the following method to set the
The five most common errors in Java are java errors.
[Editor's note] developers often encounter various inexplicable errors during programming. Recently, Sushil Das listed five common errors in Java Development On Geek On Java 」.
The following is
Java GC mechanism and related
Garbage (Garbage) is the object to be recycled by the program. If an object is not directly or indirectly referenced, it becomes "Garbage 」, the memory occupied by it needs to be released in a timely manner, otherwise
Jvm-related parameters, tuning
Common jvm parameters are as follows:
-Xmx1024m: Set the JVM maximum available memory to 1024 MB.-Xms1024m: Set JVM to enable the memory to be 1024 MB. This value can be set to the same as-Xmx to avoid JVM
This article is based on Zhou Zhiming's "in-depth understanding of Java virtual machines"If the collection algorithm is the method of memory recycling, the garbage collector is the specific implementation of memory recycling. There is no provision
First, JVM performance tuning strategySecond, performance tuning1. Java thread Pool (java.util.concurrent.ThreadPoolExecutor)The thread pool used by most applications on JVM6 is the thread pool that comes with the JDK, and the thread pool of mature
First, what is the JVMThe JVM is the abbreviation for Java Virtual machine (Java VM), which is a specification for computing devices, a fictional computer that is implemented by simulating various computer functions on a real computer.A very
Edit Modify the catlian.sh file to add the following information:-XX:+PRINTGC//Turn on GC log monitoring-xx:+printgcdetails//You can learn more about the changes in the GC-xx:+printgctimestamps//You can see how long these garbage collections took
Written in the previous wordsRecently in the work always encountered the service of the QPS in the time of the test is less than the case. So the performance optimization journey began, and the process was very tortuous. In the beginning, it was
Cenozoic collectors, replication algorithms, parallel collection, throughput-oriented requirements (throughput priority collector).Throughput = user code run time/(user code run time + garbage collection Time)-xx:maxgcpausemillis: Controls the
the process by which the JVM executes the program:I. Loading A. class file Ii. managing and allocating memory Iii. performing garbage collection JRE (Java Runtime Environment) the runtime environment of the Java program containing the JVM [1] The
Garbage (garbage) is the object that the program needs to recycle, if an object is not directly or indirectly referenced, then this object becomes "garbage", it takes up the memory needs to be released in time, otherwise it will cause "memory leak".
Serial CollectorSerial is a new generation collector; single-threaded garbage collector with a copy algorithm-xx:+useserialgc
Parnew CollectorParnew is a new generation collector; The Parnew collector is actually a multithreaded version of the
This article transferred from: http://www.cnblogs.com/chen77716/archive/2010/06/26/2130807.htmlRecent memory leaks due to the project, so large-scale JVM performance tuning, now the experience to do a record.First, JVM memory model and garbage
This is a creation in
Article, where the information may have evolved or changed.
Do not want to see the long-winded, here first to a conclusion, go GC is not perfect but also not count, the key to see how to use, try not to create a large number of
This is a creation in
Article, where the information may have evolved or changed.
The Go language channel itself does not support timeout, so the general implementation of the channel read and write timeout using Select, as follows:
select {case
Is
This is a creation in
Article, where the information may have evolved or changed.
It seems like a long time did not update the blog, mainly because the recent period in a variety of reading and look at the source code, the records are mostly
This is a creation in
Article, where the information may have evolved or changed.
In the actual use of the go language in the process, encountered some seemingly strange memory consumption, and decided to go to the garbage collection model to do
This is a creation in
Article, where the information may have evolved or changed.
Golang because of its simple syntax, quick and easy deployment is being favored by more and more developers, a Golang program developed, it is bound to care about its
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.