in the Eclipse configures run parameters or adds parameters to the command line
Eclipse installs the MAT plugin , which is used .
Virtual Machine stack Memory overflow:
Creating many threads leads to memory overflow, which reduces the maximum heap and reduces stack capacity.
Method area and run-time-constant pool overflow
The Intern () method in jdk1.6 copies the first encountered string instance to a permanent generation. a string instance created by StringBuilder is on the Java heap, so it is not the same reference. the implementation knowledge of JDK1.7 records the first occurrence of a reference in a constant pool. the string "Java" had already appeared before it was executed.
Method Area Overflow
a large number of Java class applications are generated, and classes are loaded multiple times by different ClassLoader. Can produce a method area overflow.
Native Direct Memory Overflow
will be Eclipse This restriction is obtained by error, modified to warning, and the specific action is to windows->preference...->java->compiler->errors/warnings in the "Deprecated and restricted API" , the level is determined by Error modified to Warning
Java Heap Overflow