Java Method Area
"Noun analysis"
---> Like the Java heap, a method area is a region of memory shared by all threads.
---> Save the class information of the system, such as the fields of the class, methods, constant pools, etc.
the size of the---> method area determines how many classes the system can hold, and if the system defines too many classes, causing the method area to overflow, the virtual machine also throws a memory overflow error
--->jdk1.6 and jdk1.7 method areas can be understood as permanent areas.
--->jdk1.8 has canceled the method area, instead of the metadata area.
the metadata area of the--->jdk1.8 can be set by using the parameter-xx:maxmetaspaceszie, which is a direct memory outside of the heap, unlike the permanent zone, which, by default, consumes the available system memory, without specifying a size
"parameter setting"
--->jdk1.6 and jdk1.7 can be specified using the Parameters-xx:permsize and-xx:maxpermsize
--->-xx:permsize =5m default boot size is 5M
--->-xx:maxpermsize=64m maximum size is 64M
"Exception"
--->
--->jdk1.8 metadata area memory overflow: java.lang.OutOfMemoryError:Metaspace
(4) Java method area