compression (more compact ).
After compression, the variables and CPU registers that point to the pointers of these objects will now become invalid. The Garbage Collector must re-access all the roots and modify them to point to the new memory location of the object. This causes significant performance loss. This loss is also the main drawback of the hosting heap.
Based on the above features, the garbage collection algorithm caused by garbage collection is also a research topic. Because it would
English Original: Maoni Stephens, compilation: Zhao Yukai (@ Jade Kai Sir)
The CLR garbage collector divides objects by the amount of space they occupy. Large objects and small objects are handled in a very different way. For example, memory defragmentation-the cost of moving large objects in memory is expensive, so let's look at how the garbage collector handles large objects, and how large objects have a potential impact on program performance.
Large object heap and garbage collection
In. Net
completes. -xmn2g : Sets the young generation size to 2G. entire JVM Memory size = younger generation size + older generation size + persistent generation size . The permanent average fixed size is 64m, so increasing the younger generation will reduce the size of older generations. This value has a large impact on system performance, and Sun's official recommendation is 3/8 for the entire heap. -xss128k : Sets the stack size for each thread. After
Heap Size settingsThe maximum heap size in the JVM has three limitations: the data Model (32-BT or 64-bit) of the associated operating system, the system's available virtual memory limits, and the available physical memory limits for the system. Under the 32-bit system, the 1.5g~2g;64 is generally limited to memory unrestricted for the operating system. I test under Windows Server 2003 System, 3.5G physical memory, JDK5.0, Max can be set to 1478m.Typical settings:
Java -xmx3550m-xms3550m
Heap Size settingsThe maximum heap size in the JVM has three limitations: the data Model (32-BT or 64-bit) of the associated operating system, the system's available virtual memory limits, and the available physical memory limits for the system. Under the 32-bit system, the 1.5g~2g;64 is generally limited to memory unrestricted for the operating system. I test under Windows Server 2003 System, 3.5G physical memory, JDK5.0, Max can be set to 1478m.Typical settings:
Java -xmx3550m-xms3550m
Heap Size settingsThe maximum heap size in the JVM has three limitations: the data Model (32-BT or 64-bit) of the associated operating system, the system's available virtual memory limits, and the available physical memory limits for the system. Under the 32-bit system, the 1.5g~2g;64 is generally limited to memory unrestricted for the operating system. I test under Windows Server 2003 System, 3.5G physical memory, JDK5.0, Max can be set to 1478m.Typical settings:
Java -xmx3550m-xms3550m
Heap Size SettingsThe maximum heap size in the JVM has three limitations: the data Model (32-BT or 64-bit) of the associated operating system, the system's available virtual memory limits, and the available physical memory limits for the system. Under the 32-bit system, the 1.5g~2g;64 is generally limited to memory unrestricted for the operating system. I test under Windows Server 2003 System, 3.5G physical memory, JDK5.0, Max can be set to 1478m.Typical settings:java-xmx3550m-xms3550m-xmn2g-xss
value is usually related to the execution of the application.
Space occupied : a measure of space occupancy, such as the size of a heap.
swiftness : When an object becomes a garbage object and it occupies space at a time interval that is available.
Interactive applications require a lower pause time, while the total execution time is more than the non-interactive application requirements. Real-time applications have a higher demand for garbage collection pauses and time to garbage
continuous (not physically required), when implemented, can be fixed-size, or extensible, the current mainstream of virtual machines are extensible. If there is still not enough memory allocation and no expansion after the garbage collection is performed, the OutOfMemoryError:Java Heap Space exception will be thrown.There is much more to the heap area, which is described in detail in the next section, "Java memory allocation mechanism ".5, Method area: In the Java Virtual Machine specification,
Garbage collection-generationThe proxy is a mechanism adopted by the CLR garbage collector. its only purpose is to improve the application.ProgramPerformance, the use of the garbage collector to do the following:1: The newer the object, the shorter the lifecycleIt is similar to the stack principle. The local variables defined first after the first time are used to stay in the stack for a relatively long time.2: The older the object, the longer the lifecycle, Which will be explained later.3: recl
selection details refer to the JVM tuning documentation.Slightly explained, the parallel algorithm is a multi-threaded garbage collection, the recovery period will suspend the execution of the program, while the concurrency algorithm, but also multi-threaded recycling, but does not stop the application execution. therefore, the concurrency algorithm is suitable for some programs with high interactivity. After observation, concurrency algorithms reduce the size of younger
Heap Size SettingsThe maximum heap size in the JVM has three limitations: the data Model (32-BT or 64-bit) of the associated operating system, the system's available virtual memory limits, and the available physical memory limits for the system. Under the 32-bit system, the 1.5g~2g;64 is generally limited to memory unrestricted for the operating system. I test under Windows Server 2003 System, 3.5G physical memory, JDK5.0, Max can be set to 1478m.Typical settings:
JAVANBSP; -xmx3550m-x
parallel algorithm is selected for the younger generation, and the selection details refer to the JVM tuning documentation.Slightly explained, the parallel algorithm is a multi-threaded garbage collection, the recovery period will suspend the execution of the program, while the concurrency algorithm, but also multi-threaded recycling, but does not stop the application execution. Therefore, the concurrency algorithm is suitable for some programs with high interactivity. After observation, concur
continuous (not physically required), when implemented, can be fixed-size, or extensible, the current mainstream of virtual machines are extensible. If there is still not enough memory allocation and no expansion after the garbage collection is performed, the Outofmemoryerror:java heap space exception will be thrown.There is much more to the heap area, which is described in detail in the next section, "Java memory allocation mechanism ".5, Method area: In the Java Virtual Machine specification,
I finally started the iPad today. I bought the 32G WiFi version. Overall feeling: great value, shocking.
Old Joe launched the iPad and once laughed at it for the itouch (enlarged version) that ate mushrooms. But it is precisely this "increased" that makes everything go wrong:
1. Web browsing experience, safari. Browsing the webpage in normal size is completely different from that on itouch.
2. Ibooks
IOS7.1.2 Upgrade Method Detailed:
Upgrade/Restore IOS7.1.2 method via itunes
Attention:
1, through the itunes recovery will result in the emptying of all the information on the iOS device, recommended to back up good important information.
2, has escaped Iphone/ipad/itouch using itunes upgrade/restore may report an unknown error, please be assured that!iphone/ipad/itouch
During the development process, recording and playback this piece encountered some problems, the main trouble is three: detect if there is a sound input device when there are multiple sound output devices, the specified sound output device detects the insertion and removal of headphones
The first problem is that for devices such as itouch and ipads that do not have microphones themselves, they need to be checked for headphones with a recording functio
Ext.: http://unixboy.javaeye.com/blog/174173
Heap Size SettingsThe maximum heap size in the JVM has three limitations: the data Model (32-BT or 64-bit) of the associated operating system, the system's available virtual memory limits, and the available physical memory limits for the system. Under the 32-bit system, the 1.5g~2g;64 is generally limited to memory unrestricted for the operating system. I test under Windows Server 2003 System, 3.5G physical memory, JDK5.0, Max can be set to 1478m.
have a full view of the low-lying areas. Imagine standing on the top of the hill, overlooking the whole town, people on the road, houses are wrong, isn't it open-minded, quite a little hero's pride?
Broadcast fairy town is located at the junction of the Central Plains and the saiwai. Its architectural style is self-contained. In the figure, this is the only che Ma Yi in the town, where the people who want to seek fairy from Kunlun are staying in the room.
In addition, when it comes to the scene
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.