The memory managed by the Java Virtual Machine includes the following runtime data areas:Program Counter (PCR):1, is a small memory space, can be seen as the current thread executes the byte code of the line number indicator2, for thread-private3, the implementation of the Java method has PCR, when the native method is performed, PCR is empty (Undefined)4, the
Program Counter Register: A small amount of memory space that can be seen as the line number indicator of the byte code executed by the current thread. The bytecode interpreter works by changing the value of this counter to select the next byte-code instruction that needs to be executed, such as branching, looping, jumping, exception handling, thread recovery, and other basic functions that rely on this counter to complete. The multithreading of the J
, such as the class,static variable1.6. Running a constant-rate poolWhen the JVM executes a class, it must be loaded, connected, initialized, and the connection includes validation, preparation, and parsing of three phases.When the class is loaded into memory, the JVM stores the contents of the class constant pool in the run-time pool, so that the run-time pool is one of each class.In the parsing phase, the symbolic reference is replaced with a direct
Thread run data is differentiated into thread share and thread exclusive zoneThe thread exclusive zone means that each thread that is opened will have a thread exclusive zoneAs shown in the following:Program Counter:1) is a small memory space that can be seen as the line number indicator of the byte code executed by the current thread2) It is in the thread exclusive zone (each thread will have its own thread exclusive zone)3) If the thread executes a
There are three ways in which memory management works:1. Virtual memory, functions such as VirtualAlloc2. Heap, heapxxx function, malloc,new, etc.3. Memory-mapped files, Mapped fileVery many people will be confused, but look at the following pictures will be more clear. This image is copied from MSDN.Heap and
java VM full Name: Java Virtual machine; Java Virtual machine divides the memory it manages into several different data regions during the execution of a Java program. These areas have their own uses, as well as the creation and destruction times. The memory managed by the Java
Some time ago, someone asked a question on csdn
: How does a VB program transfer physical memory usage to virtual memory? [VBCommunity]
Other related posts
How to make the program occupy virtual memory instead of the actual memory
Memory is very important in the computer, all the programs running in the computer need to go through the memory to execute, if the execution of the program is very large or many, will lead to memory consumption exhausted. To solve this problem, Windows uses virtual memory t
thread-private. Each JVM thread has its own Java Virtual machine stack, which is created at the same time as the thread and whose life cycle is the same as the thread.The virtual machine stack describes the memory model that is executed by the Java method: Each time a method is executed, a stack frame is created to store the local variable table, the operand sta
Compile: virtual memory exhausted: Cannot allocate memory, exhaustedallocateI. Problems
When the system does not set the swap size or the memory size is too small when installing the virtual machine, the Compilation Program will encounter the
Understanding of the Java Virtual machine stackThe virtual machine stack is the stack memory we know, and the stack memory is unique to the thread. The reference type stored in the local variable table in the stack memory is simply the m
Turn from: http://www.cnblogs.com/chenpingzhao/p/4820814.html
Problem Description:
The Linux server was purchased with 512MB of memory.
When compiling PHP will prompt: Virtual memory Exhausted:cannot Allocate memory, compilation failed.
Workaround:
This problem occurs because the server does not have enough
The administrator runs the cmd command, input (copy-paste directly) SC config NDU start= disabled because of a memory leak caused by the Microsoft Ndu driver. It is also possible that the virtual machine uninstall is not clean caused. It can also be a program bug.Just to try, I was unloading the virtual machine after the non-paged pool
MySQL memory and virtual memory optimization settings bitsCN.com
In order to install the mysql environment for testing, it was found that mysql occupied a large amount of virtual memory after the installation, which could reach more than 8 hundred megabytes. I searched for i
2.2 Run-time areaA Java Virtual machine is divided into several different data regions,1. Program counter, the bytecode interpreter is working by changing the value of the counter to take a scare jump. The bytecode command to execute
Understanding the String.intern () methodFunction: If a string constant in the pool contains a string equal to this string object, the strings represented in the pool are returned, otherwise the string con
First, the questionWhen the virtual machine is installed when the system does not set the swap size or set the memory is too small, the compiler will appear the virtual memory Exhausted:cannot allocate memory problem, you can use swap to expand the Ram method.Second, the sol
Problem Description:The Linux server has 512MB of memory for the Linux server purchased.When compiling PHP, you will be prompted: virtual memory Exhausted:cannot Allocate memory, compile failed.Workaround:The problem occurs because the server does not have enough memory to c
Original link: http://www.cnblogs.com/laoyangHJ/archive/2011/08/17/gc-Stack.htmlDrill down into Java Virtual machines: stacks and heap in the JVMIn the JVM, memory is divided into two parts, stack (stack) and heap (heap), where we know the stack and heap from the perspective of the memory management principle of the JVM, and these principles recognize the problem
Compile and install PHP when you encounter virtual memory Exhausted:cannot allocate memorySometimes when you build a VPS, you need to install the host Control Panel by compiling it. For large-memory VPS, the general problem is not big, but for small memory, such as 512MB of memory
becomes a bottleneck for higher concurrency, we need to monitor and regulate these "automated" technologies.Return the time from 1960 to the present, back to our familiar Java language. In the first chapter of this article, we describe the parts of the Java Memory Runtime area, where the program counter, VM stack, local method stack three regions are born with threads, and the frames in the stack are organized into stack operations with the method en
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.