Classes are loaded: Refers to reading the binary data of a class file into the runtime data area (the JVM is partitioned in memory)and creates a class object within the method area.Class Loader:Responsible for loading the compiled class file (bytecode file) into the JVM (Java Virtual machine).The class loader is mainly divided into the following types:1.Bootstra
Eclipse set JVM memory inThe following error was reported when testing the conversion of a document to a picture in eclipse today:
Java.lang.OutOfMemoryError:Java Heap Space
As you can see from the exception above, the amount of memory that the JVM needs to use exceeds the maximum
Original article: http://elf8848.iteye.com/blog/467460
There are two common memory overflow types:
Java. Lang. outofmemoryerror: permgen Space
Java. Lang. outofmemoryerror: Java heap Space
1. java. Lang. outofmemoryerror: permgen Space
Permgen space stands for permanent generation space, which is the permanent storage area of the memory,This memory is mainly used
Tomcat itself cannot run directly on a computer. It depends on an operating system based on hardware and a Java virtual machine. When the Java program starts, the JVM allocates an initial memory and the maximum memory to the application. The initial memory and maximum memory
Java Virtual machineJava Virtual machine is a Java file generated by the class file, the class file is the bytecode, the JVM can explain the bytecode becomes the machine code of the target machine, so the Java program can be compiled once and then run around the real implementation of the cross-platform features, The JVM is key in cross-platform features. including our own built-in class files require a vir
In 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 of static and static properties in Java.In general, the JVM's
Optimize JVM memory to solve outofmemoryerror
From the VM specification, we can see several exceptions.Java. Lang. stackoverflowerror :( very few)Java. Lang. outofmemoryerror: heap space (common)Java. Lang. outofmemoryerror: permgen space (frequently seen)
The following are the most common examples:
Java. Lang. outofmemoryerror
Permgen space is a common exception. It refers to the exception
I. Diagram of the Java Technical System Module
Ii. JVM memory Zone Model
1. Method Area
It is also called "permanent generation" and "non-heap". It is used to store class information, constants, static variables, and memory areas shared by various threads. The default value is 16 MB and the maximum value is 64 MB. You can use the-XX: permsize and-XX
What is 1.JVM? Jvm:java virtual mechinal (Java vm). It is a fictional computer that is implemented by simulating various functions on a real computer. The main task of the JVM is to interpret its own set of instructions (bytecode, such as Java source code compiled into a class file to run on a virtual machine) and map to a local CPU instruction set or system call to the OS. The essence of the cross-platfor
1. Overview Java and C + + there is a dynamic memory allocation and garbage collection technology called the "high Wall", the wall outside people want to go in, the wall inside people but think out. 2. Run-time data region
The JVM, while executing a Java program, divides the memory it manages into several different data regions. The following figure:
2.1 Progra
800x600 Normal 0 7.8 lb 0 2 false false en-US ZH-CN x-none
Eclipse set JVM memory in
Today, in Eclipse, when you test a document into a picture, the following error is reported:
Java.lang.OutOfMemoryError:Java Heap Space
As you can see from the above exception information, the JVM needs to use more memor
A brief introduction to the jvm runtime data zone #160; #160; #160; the memory managed by JVM is divided into the following runtime data zones: program counters, Java virtual machine stacks, local method stacks, Java stacks, and method zones. #160; #160; This article mainly involves: java virtual machine station (java stack), java heap, and method zone. #16
Summary after reading Java Virtual Machine
1) Sun HotSpot JVM Memory Model
2) Sun HotSpot JVM Memory Allocation
Iii) Sun HotSpot JVM memory monitoring
4) Sun HotSpot JVM garbage collect
VM Run-time data region :The JVM includes the following runtime zones, as defined in the Java Virtual Machine Specification (second edition):Let's consider a few questions:How does the 1.jVM work?How is the 2.JVM runtime memory allocated?3. In what area do we write Java code (classes, objects, methods, constants, varia
Recently, in a stress test problem analysis, it was found that applications running in Tomcat, no matter how many vuser simulated request pressure, only consumed 200% of the CPU, measured the application of TPS is very low, nearly 10 times per second. After analysis, not the bottleneck of the network card, so suspect is a memory lock problem, so the following operations and analysis.Step one: Execute the jstack-l thread number > Thread number on the L
Recently I have been familiar with a project that has been developed for several years. I need to port the database from MySQL to Oracle. First, I need to point the JDBC connection to MySQL and package it into tomcat to run it. There is no problem, however, when the JDBC connection is directed to Oracle, Tomcat continuously throws Java. lang. outofmemoryerror: I googled the Internet and learned about the running mechanism of Tomcat. I also solved the problem and shared it for future reference.
1
1.JVM run-time data region partitioningA. Procedure counter (program Counter Register)A small piece of memory space, which can be seen as the line number indicator of the byte code executed by the current thread. Each thread has a separate counter, and if the native method is currently executing, the counter value is empty. B.JVM Stack (Java Virtual machine Stack)Describes the
JVM runtime data zone: the memory managed by JVM is divided into the following runtime data zones: Program counters, Java Virtual Machine stacks, local method stacks, Java stacks, and method zones. This article mainly involves: Java Virtual Machine station (java stack for short), Java heap and method area. Here, we will briefly popularize the knowledge of these t
JVM Memory Area Model1. Method AreaAlso known as " Permanent Generation", "non-heap", It is used to store virtual machine loaded class information, constants, static variables, is the memory area shared by each thread. The default minimum value is 16MBand themaximum value is 64MB, which can be -xx:permsize and -xx:maxpermsize parameter limits the size of the met
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
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.