Home > Java > javaTutorial > 10 course recommendations on memory areas

10 course recommendations on memory areas

巴扎黑
Release: 2017-06-12 13:45:54
Original
1463 people have browsed it

This article mainly introduces relevant information about Java memory area and memory overflow exception. Friends who need it can refer to the overview of Java memory area and memory overflow exception. For developers who develop C and C++ programs, in memory management In the field, programmers have absolute rights to use memory, but they must also use and clean up memory correctly, which requires programmers to have a higher level. For Java programmers, with the help of the virtual machine's automatic memory management mechanism, it is no longer necessary to write paired delete/free code for each new operation, and memory leaks and memory overflow problems are less likely to occur. It seems that Having the memory managed by the virtual machine is all well and good. However, it is precisely because Java programmers have given the power of memory control to the Java virtual machine. Once problems with memory leaks and overflows occur, if you do not understand how the virtual machine uses memory, troubleshooting errors will become a task. Extremely difficult work. In the Java runtime data area, we generally think that the JVM only consists of two parts: the heap and the stack. However, the actual Java virtual machine will

1. ## during the execution of the Java program. #Detailed introduction to Java memory area and memory overflow exception

10 course recommendations on memory areas

##Introduction: This article mainly introduces Java memory For detailed information on area and memory overflow exceptions, friends in need can refer to

2.

Detailed explanation of Java virtual machine

10 course recommendations on memory areas

Introduction: 1. The main structure of JVM is as follows: 2. Introduction to the functions of each area 1), Method Area: (1) Used for Stores class information, constants, static variables, etc. loaded by the virtual machine, which is a memory area shared by each thread; (2) The default minimum value is 16MB and the maximum value is 64MB, which can be limited by the -XX:PermSize and -XX:MaxPermSize parameters. The size of the area; (

3.

Things about Java GC (1)

10 course recommendations on memory areas

Introduction: Preface Unlike C language, the allocation and recycling of Java memory (heap memory) is automatically completed by the JVM garbage collector. This feature is very popular and can help programmers better Writing code, this article takes the HotSpot virtual machine as an example to talk about Java GC. In the article "Things about Java heap memory in JVM memory", we already know that the Java heap is a memory area shared by all threads, and all object instances. and array

4.

Java Virtual Machine Learning - Architecture Memory Model

10 course recommendations on memory areas##Introduction: Also known as "permanent generation" and "non-heap", it is used to store class information, constants, and static variables loaded by the virtual machine. It is a memory area shared by each thread. The default minimum value is. 16MB, the maximum value is 64MB, you can limit the size of the method area through the -XX:PermSize and -XX:MaxPermSize parameters

##5. Java Virtual Machine Learning - Object Access

10 course recommendations on memory areas Introduction: Object access involves three memory areas: Java stack, Java heap, and method area.

6. Java Virtual Machine Learning - Object Memory Allocation and Recycling

##Introduction: In most cases, objects are allocated first in the new generation Eden area. When the Eden memory area does not have enough space for allocation, the virtual machine will trigger a Minor GC (New Generation GC). During Minor GC, the virtual machine moves objects in the Eden area to one of the Survivor areas. 10 course recommendations on memory areas

7. C# Basics of Memory Allocation

10 course recommendations on memory areas

##Introduction: an object The creation process is mainly divided into two parts: memory allocation and initialization. In .NET, the memory area managed by CLR mainly consists of three parts: stack, GC heap, and LOH heap. The stack is mainly used to allocate value type data. Its management is controlled by the system, not by the GC like the GC heap. When the thread finishes executing the method of the value type instance, this space will be automatically released. Generally, the stack has high execution efficiency but limited capacity.

8. jvm memory area

10 course recommendations on memory areas

## Introduction: jvm memory area

9.

In-depth understanding of Java virtual machine

10 course recommendations on memory areas

Introduction: JVM memory area When we write programs, we often encounter problems such as OOM (out of Memory) and memory leaks

10.

PHP stores data sets directly in shared memory

#Introduction: Shared memory is an efficient way to exchange data between applications on the same machine. A process can create a memory segment that can be accessed by other processes, as long as it is assigned the correct permissions. Each memory segment has a unique ID (called a shmid) that points to a physical memory area where other processes can operate on it. Once created and given the appropriate permissions, other processes on the same machine can operate on these memory segments: read, write, and delete. This shows that applications written in C can be used with other languages ​​such as Java How many bytes are the cache lines in your JVM?

The above is the detailed content of 10 course recommendations on memory areas. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template