This chapter mainly introduces some basic resources of the computer and some basic resources after the operating system processing.Mainly include
Cpu
Memory
Disk
Internet
Thread
This chapter describes some of the principles of these resources, and describes how to view the number of resources, usage, and some of the effects on performance and overall computer execution.Many of the content in this chapter is based on Linux
1. JVM Memory Model
Program counter, local method stack, method area, Java stack, Java heap, and other implied registers.
1.1 Program Counter:
A program counter is a small memory space that can be viewed as the line number indicator of the bytecode executed by the current thread. Basic functions such as branching, looping, jumping, exception handling, and thre
Are all Java developers likely to encounter such confusion? How much space should I set for heap memory? What area of the runtime data does the OutOfMemoryError exception involve? How to solve it? In fact, if you frequently solve server performance problems, then these problems will become very common, understand the JVM memory is also for the server performance
The Java. Lang. runtime class provides the java. Lang. runtime class to view the current JVM memory usage. Each Java instance (Virtual Machine instance) has only one runtime instance. You can use runtime. getruntime () to obtain the runtime Instance Object of the current virtual machine.
Runtime provides three methods to obtain the maximum memory available for th
the virtual machine stack, except that the virtual machine stack executes the Java method service, and the local method stack serves the native method.
The local method stack is not mandated in the virtual machine specification, so the virtual machine is free to implement it. In the hotspot virtual machine, the local method stack and the virtual machine stack are directly merged.
Heap (Java heap)
The heap is the largest piece of memory that the
allocate memory. The Java heap is the main area of garbage collector management, also known as the GC heap. The Java heap can generally be divided into the following three parts: (Young generation, old age, permanent generation)
Young Youth District is divided into three districts: Eden area, two survivor (from and to) of the same size, of which only one of them is used in the Survivor interval, and th
JMX-based connection to a running JVM that launches com.sun.management.jmxremote to implement the default JMX management client.1) OverviewThe overview interface provides real-time visibility into the heap memory usage, threads, classes, and CPU usage of Java applications.2) MemoryThe memory interface allows you to se
Java enables multiple tasks to be processed at the same time through multithreading, where all threads share the JVM memory area, main memory, each thread has its own working RAM, and when the thread interacts with the memory area, the data is copied from RAM to the working memory
Objective
The Java program is run through a Java virtual machine. The class bytecode file is loaded into the JVM through the ClassLoader and then executed according to the predetermined rules. The Java Virtual machine divides the memory it manages into several different data regions during the execution of a Java program. These memory areas are uniformly ca
JVM memory overflow
The deep understanding of Java Virtual Machine (jvm) book introduces jvm memory overflow, which helps you understand the Automatic Memory Management Mechanism of
In C + +, programmers have ownership of each object, but at the same time shoulder the responsibility of releasing the object's memory space, while Java has the help of a virtual machine, the programmer has ownership of the object and no longer need to free the object's memory space. Because the JVM automatically frees up object
The main contents are as follows:
JVM startup process
JVM Basic Structure
Memory model
Compiling and interpreting the concept of running
First, the JVM startup process:When the JVM starts, it is started by the Java Command/JAVAW command.Second, the
The main contents are as follows:
JVM startup process
JVM Basic Structure
Memory model
Compiling and interpreting the concept of running
First, the JVM startup process:When the JVM starts, it is started by the Java Command/JAVAW command.Second, the
When installing Java development software, the default installation consists of two folders, one JDK (Java Development Toolbox), one JRE (Java running environment, with JVM), where a JRE is included in the JDK. If you are only running Java programs, the JRE is sufficient, and the JDK is for developers only.One, JVM memory allocation settings1. There are four para
JVM Virtual machine memory model in Java detailed description2012-12-12 18:36:03| Category: java | Tags: java jvm heap Memory virtual machine | report | font subscription The internal structure of the JVM is as follows:An excellent Java programmer must under
The main contents of this article:Http://hllvm.group.iteye.com/group/wiki/3053-JVMhttp://my.oschina.net/xishuixixia/blog/133850http://my.oschina.net/xishuixixia/blog/132395http://www.cnblogs.com/gw811/archive/2012/10/18/2730117.html#undefined1. JVM Memory Model:Program Counter Register (the PC Register)The program counter registers a small piece of memory, which
This article provides a detailed analysis of the JVM memory limit of 2 GB in Linux, for more information, see the 32-bit JVM we usually use (64-bit JVM will lose 10-20% performance, which is generally not recommended ), the addressing space of 32-bit programs should be 4 GB. Why does the
Original address: http://blog.csdn.net/kingofworld/article/details/17718587First, JVM memory model overall architecture diagramRun-time Data areaThe JVM defines different run-time data areas, which are used to execute the application. Some regions start and destroy with the JVM, and some of the data in some areas is th
The Java heap is described as follows:
Heap = {old + new = {Eden, from, }} Memory is composed of perm and heap.
Heap = {old + new = {Eden, from, }}JVM
The memory model has two major blocks:
New generation,
The other is
Old Generation.
In
New Generation
Is called
Eden
Space, mainly used to store new objects, there are two more
Specified vor spaces (from,
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.